-
-
Notifications
You must be signed in to change notification settings - Fork 721
perf(ast): remove redundant checks from MemberExpression::static_property_info and ComputedMemberExpression::static_property_name
#11882
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(ast): remove redundant checks from MemberExpression::static_property_info and ComputedMemberExpression::static_property_name
#11882
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. |
CodSpeed Instrumentation Performance ReportMerging #11882 will degrade performances by 12.72%Comparing Summary
Benchmarks breakdown
|
762ba87 to
433998f
Compare
942808a to
66dbf9d
Compare
433998f to
debdbba
Compare
Merge activity
|
…perty_info` and `ComputedMemberExpression::static_property_name` (#11882) Small optimization to `MemberExpression::static_property_info` and `ComputedMemberExpression::static_property_name`. If `lit.quasis.len() == 1`, `lit.expressions.is_empty()` is always true, so no need to check both.
debdbba to
5500d2d
Compare

Small optimization to
MemberExpression::static_property_infoandComputedMemberExpression::static_property_name. Iflit.quasis.len() == 1,lit.expressions.is_empty()is always true, so no need to check both.