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

Further improvements to serialization #14

Merged
merged 2 commits into from
Sep 15, 2014
Merged

Further improvements to serialization #14

merged 2 commits into from
Sep 15, 2014

Conversation

rovarga
Copy link
Contributor

@rovarga rovarga commented Sep 15, 2014

The first patch eliminates the interim hashmap in the serialization path.

The second patch makes the equality/hash functions final and reworks the serialization path to use default java serializer as much as possible (which will set the final fields for us).

Robert Varga added 2 commits September 15, 2014 14:27
Couple of improvements to the serialization strategy:
- emit the fact that the map is read-only, so we preserve that trait
- write out the size and entries ourselves, not via an intermediate
  HashMap()

The read path now takes these changes into account and resets the
rootupdater after deserialization is done back to null.

Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
Removes duplicate fields and makes the equivalent methods final. Also
marks things that we take care of as transient, thus allowing us to
reuse the JVM magic in serialization.

Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
This was referenced Sep 15, 2014
romix added a commit that referenced this pull request Sep 15, 2014
Further improvements to serialization
@romix romix merged commit c465a40 into romix:master Sep 15, 2014
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.

None yet

2 participants