perf(semantic): inline enter_kind for FormalParameterRest#17403
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. |
d4bc068 to
5890ba9
Compare
There was a problem hiding this comment.
Pull request overview
This PR optimizes the semantic builder by inlining the enter_kind logic for FormalParameterRest, eliminating the overhead of matching in the enter_kind method. A secondary unrelated optimization to the references.retain closure is also included.
- Adds custom
visit_formal_parameter_restmethod that directly callsparam.bind(self)afterenter_node - Removes
FormalParameterRestmatch arm fromenter_kind - Changes
references.retainclosure parameter from|&reference_id|to|reference_id|with explicit dereference
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CodSpeed Performance ReportMerging #17403 will not alter performanceComparing Summary
Footnotes
|
Merge activity
|
5890ba9 to
7284b76
Compare

Ref #18098