-
-
Notifications
You must be signed in to change notification settings - Fork 631
refactor(parser): rewrite arrow function parsing to remove rewind in hot paths #11483
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
refactor(parser): rewrite arrow function parsing to remove rewind in hot paths #11483
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
86d49d5
to
d253194
Compare
Best chance is to avoid rewind on hot path such as |
d253194
to
44f8db0
Compare
7efbae9
to
a70f206
Compare
CodSpeed Instrumentation Performance ReportMerging #11483 will degrade performances by 11.31%Comparing Summary
Benchmarks breakdown
|
a70f206
to
ae66138
Compare
ae66138
to
08d8634
Compare
Okay, I've gotten this to a working state now. I need to verify that the hot paths don't rewind though. As evidenced above, just focus on arrow function parsing can have a huge effect since it's a commonly used feature. We are also rewinding in like 90% of the other cases, and only not rewinding on things like |
Going to close this out as I don't have capacity right now to continue with this approach. |
This is a major work-in-progress. May not even be merged.