Skip to content

Comments

refactor(transformer/optional-chaining): avoid multiple symbol lookups#7421

Merged
graphite-app[bot] merged 1 commit intomainfrom
11-22-refactor_transformer_optional-chaining_avoid_multiple_symbol_lookups
Nov 22, 2024
Merged

refactor(transformer/optional-chaining): avoid multiple symbol lookups#7421
graphite-app[bot] merged 1 commit intomainfrom
11-22-refactor_transformer_optional-chaining_avoid_multiple_symbol_lookups

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 22, 2024

IdentifierReference::is_global_reference and MaybeBoundIdentifier::from_identifier_reference both look up the symbol for the identifier. Do this lookup only once, rather than twice.

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 22, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-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.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added A-transformer Area - Transformer / Transpiler C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Nov 22, 2024
@overlookmotel overlookmotel marked this pull request as ready for review November 22, 2024 11:47
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 22, 2024

CodSpeed Performance Report

Merging #7421 will not alter performance

Comparing 11-22-refactor_transformer_optional-chaining_avoid_multiple_symbol_lookups (52784d2) with main (971c91a)

Summary

✅ 30 untouched benchmarks

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Nov 22, 2024
Copy link
Member

Dunqing commented Nov 22, 2024

Merge activity

  • Nov 22, 8:35 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 22, 8:36 AM EST: A user added this pull request to the Graphite merge queue.
  • Nov 22, 8:41 AM EST: A user merged this pull request with the Graphite merge queue.

#7421)

`IdentifierReference::is_global_reference` and `MaybeBoundIdentifier::from_identifier_reference` both look up the symbol for the identifier. Do this lookup only once, rather than twice.
@Dunqing Dunqing force-pushed the 11-22-refactor_transformer_optional-chaining_avoid_multiple_symbol_lookups branch from c25cb81 to 52784d2 Compare November 22, 2024 13:36
@graphite-app graphite-app bot merged commit 52784d2 into main Nov 22, 2024
@graphite-app graphite-app bot deleted the 11-22-refactor_transformer_optional-chaining_avoid_multiple_symbol_lookups branch November 22, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-transformer Area - Transformer / Transpiler C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants