Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jul 31, 2025

Small perf improvement. There's no need to look up an AstNode just to get its NodeId. You already have the NodeId in order to look up the AstNode. So skip getting the AstNode and just use NodeIds.

@github-actions github-actions bot added the C-performance Category - Solution not expected to change functional behavior, only performance label Jul 31, 2025
Copy link
Member Author

overlookmotel commented Jul 31, 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.

@codspeed-hq
Copy link

codspeed-hq bot commented Jul 31, 2025

CodSpeed Instrumentation Performance Report

Merging #12663 will not alter performance

Comparing 07-29-perf_mangler_remove_unnecessary_astnode_lookups (4adc1ed) with main (da3a881)1

Summary

✅ 34 untouched benchmarks

Footnotes

  1. No successful run was found on main (6564215) during the generation of this report, so da3a881 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Jul 31, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Jul 31, 2025

Merge activity

Small perf improvement. There's no need to look up an `AstNode` just to get its `NodeId`. You already have the `NodeId` in order to look up the `AstNode`. So skip getting the `AstNode` and just use `NodeId`s.
@graphite-app graphite-app bot force-pushed the 07-29-perf_mangler_remove_unnecessary_astnode_lookups branch from c90f8df to 4adc1ed Compare July 31, 2025 15:32
graphite-app bot pushed a commit that referenced this pull request Jul 31, 2025
…ode` (#12664)

Pure refactor. Follow-on after #12663. Move looking up `NodeId` for a `Reference` into `is_name_set_reference_node`. This makes it clearer that the `ReferenceId` and `NodeId` are connected.
@graphite-app graphite-app bot merged commit 4adc1ed into main Jul 31, 2025
24 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 31, 2025
@graphite-app graphite-app bot deleted the 07-29-perf_mangler_remove_unnecessary_astnode_lookups branch July 31, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants