-
-
Notifications
You must be signed in to change notification settings - Fork 454
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(transformer): break up RegExp transform into multiple functions #5511
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @overlookmotel and the rest of your teammates on Graphite |
CodSpeed Performance ReportMerging #5511 will not alter performanceComparing Summary
|
My more minimal version which only moves all the logic into a separate function from A failed experiment! |
Experiment. Idea is to split up the transform, with the heavy logic in separate functions, so potentially the compiler can inline the smaller "entry" functions.
enter_expression
is now tiny, andtransform_regexp
also quite short as it's all simple comparisons.transform_regexp
contains all the logic for bailing out quickly, so potentially the fast path for doing nothing could all get inlined.