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

More efficient serialize_bytes #90

Merged
merged 4 commits into from Dec 12, 2016
Merged

More efficient serialize_bytes #90

merged 4 commits into from Dec 12, 2016

Conversation

@dtolnay
Copy link
Collaborator

dtolnay commented Dec 12, 2016

Reported in IRC: user blank_name2 tried serializing HashMap<String, HashSet<Bytes>> vs HashMap<String, HashSet<&Path>>, the &Path version was done in ~.6 seconds while the &[u8] one took a full 3 seconds more.

This PR resolves the difference between the two while keeping the same serialized form.

dtolnay added 4 commits Dec 12, 2016
Reported in #serde: blank_name2 tried serializing
`HashMap<String, HashSet<Bytes>>` vs `HashMap<String, HashSet<&Path>>`,
the `&Path` version was done in ~.6 seconds while the
`&[u8]` one took a full 3 seconds more.
@TyOverby
Copy link
Collaborator

TyOverby commented Dec 12, 2016

Looks good to me! Thanks for the contribution!

@TyOverby TyOverby merged commit 7ebfaaa into servo:master Dec 12, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@dtolnay dtolnay deleted the dtolnay:bytes branch Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.