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

Overoptimize slice reader #308

Merged
merged 3 commits into from Mar 18, 2020
Merged

Overoptimize slice reader #308

merged 3 commits into from Mar 18, 2020

Conversation

@ZoeyR
Copy link
Collaborator

ZoeyR commented Mar 15, 2020

Closes #206

The default read implementation on slices was not generating efficient code. This custom implementation generates much smaller assembly with fewer function calls.

Copy link

s3bk left a comment

I think this can be done without adding a copy of slice and the same impl that is already in std::slice.

src/de/read.rs Show resolved Hide resolved
src/de/read.rs Show resolved Hide resolved
@ZoeyR ZoeyR force-pushed the ZoeyR:slice-reader-opt branch from bc0b311 to c01b0cb Mar 15, 2020
@ZoeyR ZoeyR force-pushed the ZoeyR:slice-reader-opt branch from c01b0cb to cfc6d85 Mar 15, 2020
@jdm
jdm approved these changes Mar 18, 2020
@ZoeyR ZoeyR merged commit 210559a into servo:master Mar 18, 2020
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
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.

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