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

Elide unnecessary copy when consuming a byte buffer. #223

Merged
merged 1 commit into from Dec 1, 2017

Conversation

@khuey
Copy link
Contributor

khuey commented Dec 1, 2017

The byte buffer stuff is designed to allow zero copies ... but bincode forces one anyways, to save reallocating its internal Vec.

@TyOverby
Copy link
Collaborator

TyOverby commented Dec 1, 2017

Good catch! Thanks!

@TyOverby TyOverby merged commit 0bc2544 into servo:master Dec 1, 2017
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@khuey khuey deleted the khuey:unnecessary-copy branch Dec 5, 2017
@khuey khuey restored the khuey:unnecessary-copy branch Dec 6, 2017
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.