-
-
Notifications
You must be signed in to change notification settings - Fork 485
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
perf(regular_expression): Remove u16 reader, mark surrogate pairs instead #5210
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
We don't have a codspeed benchmark for it. Let me enable regex parsing in the benchmark. |
CodSpeed Performance ReportMerging #5210 will not alter performanceComparing Summary
|
Oh, really? Thank you! 🙈 Although, I was thinking of withdrawing this PR. Not using As a result, while test262 is currently passing (though it might just be an oversight), if there isn't a significant improvement, I think it would be better to keep behavior more spec like. |
I don't know about the details, feel free to make your own judgements. |
I've never seen but `/a{9007199254740991}/` is valid and this is the maximum value for quantifier. \+ left comment about #5210 experiment.
Currently, in non-unicode mode, the pattern string is handled through
encode_utf16()
.However,
Span
offset is also complicatedFrom the above, can't we unify the Reader in unicode mode?
Based on the hypothesis, I'd like to try to find out.