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

Remove string allocation from try_iter #1393

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

RReverser
Copy link
Member

This allows to significantly speed up iteration over small collections, where string encoding is the primary overhead.

Related to #1386, but works around only this partial case.

This allows to significantly speed up iteration over small collections, where string encoding is the primary overhead.

Related to rustwasm#1386, but works around only this partial case.
@RReverser
Copy link
Member Author

Note that it's still faster to check for is_array and specialise for it, but I think that's explainable by number of roundtrips try_iter has to do to JS land to be generic.

@alexcrichton alexcrichton merged commit e43963f into rustwasm:master Mar 26, 2019
@alexcrichton
Copy link
Contributor

👍

@RReverser RReverser deleted the faster-try-iter branch March 26, 2019 15:12
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