Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for efficient serialization #19

Merged
merged 8 commits into from
Jan 23, 2019
Merged

Add support for efficient serialization #19

merged 8 commits into from
Jan 23, 2019

Conversation

Tessil
Copy link
Owner

@Tessil Tessil commented Jan 23, 2019

This PR adds two new methods template<class Serializer> void serialize(Serializer& serializer) const; and template<class Deserializer> static array_map deserialize(Deserializer& deserializer, bool hash_compatible = false); to tsl::htrie_map/set.

They take advantage of the internals of the data structure to provide an efficient way to serialize/deserialize the structure.

@Tessil Tessil merged commit afcc269 into master Jan 23, 2019
@Tessil Tessil deleted the serialization branch January 23, 2019 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant