Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jun 24, 2025

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.

Copy link
Member Author

overlookmotel commented Jun 24, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions github-actions bot added the C-performance Category - Solution not expected to change functional behavior, only performance label Jun 24, 2025
@overlookmotel overlookmotel marked this pull request as ready for review June 24, 2025 13:27
@codspeed-hq
Copy link

codspeed-hq bot commented Jun 24, 2025

CodSpeed Instrumentation Performance Report

Merging #11882 will degrade performances by 12.72%

Comparing 06-24-perf_ast_remove_redundant_checks_from_memberexpression_static_property_info_and_computedmemberexpression_static_property_name_ (5500d2d) with main (66dbf9d)

Summary

❌ 1 regressions
✅ 37 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
mangler[cal.com.tsx] 3.1 ms 3.5 ms -12.72%

@graphite-app graphite-app bot changed the base branch from 06-24-perf_linter_no-console_get_static_property_name_only_once to graphite-base/11882 June 24, 2025 13:36
@graphite-app graphite-app bot force-pushed the 06-24-perf_ast_remove_redundant_checks_from_memberexpression_static_property_info_and_computedmemberexpression_static_property_name_ branch from 762ba87 to 433998f Compare June 24, 2025 13:43
@graphite-app graphite-app bot force-pushed the graphite-base/11882 branch from 942808a to 66dbf9d Compare June 24, 2025 13:43
@graphite-app graphite-app bot changed the base branch from graphite-base/11882 to main June 24, 2025 13:44
@graphite-app graphite-app bot force-pushed the 06-24-perf_ast_remove_redundant_checks_from_memberexpression_static_property_info_and_computedmemberexpression_static_property_name_ branch from 433998f to debdbba Compare June 24, 2025 13:44
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Jun 24, 2025
Copy link
Contributor

camc314 commented Jun 24, 2025

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.
@graphite-app graphite-app bot force-pushed the 06-24-perf_ast_remove_redundant_checks_from_memberexpression_static_property_info_and_computedmemberexpression_static_property_name_ branch from debdbba to 5500d2d Compare June 24, 2025 14:05
overlookmotel added a commit that referenced this pull request Jun 24, 2025
@graphite-app graphite-app bot merged commit 5500d2d into main Jun 24, 2025
24 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jun 24, 2025
@graphite-app graphite-app bot deleted the 06-24-perf_ast_remove_redundant_checks_from_memberexpression_static_property_info_and_computedmemberexpression_static_property_name_ branch June 24, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST C-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants