Skip to content

Quantify the performance improvement #9

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

Open
gsathya opened this issue May 15, 2018 · 1 comment
Open

Quantify the performance improvement #9

gsathya opened this issue May 15, 2018 · 1 comment

Comments

@gsathya
Copy link
Member

gsathya commented May 15, 2018

The README claims:

String.prototype[Symbol.iterator] which allows a hassle-free iteration over string codepoints, but yields their string values, which are inefficient to work with in performance-critical lexers, and still lack position information.

I would expect the iteration protocol to dominate baseline performance, which is still true for this proposal. I'm curious about the performance gains with this proposal. Is there a benchmark for this claim?

@littledan
Copy link
Member

I guess part of the motivation for this proposal is performance and part is ergonomics. Maybe this proposal would be justified if there were only an ergonomics benefit. To assess that, it would be good to understand how these divide up in practice as far as what users' needs are. I've heard that some amount of manual UTF-16 decoding in JavaScript is more for performance than ergonomics reasons.

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

No branches or pull requests

2 participants