refactor(linter, mangler): get reference scope by reference.scope_id()#18059
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. |
Merging this PR will improve performance by 20.89%
Performance Changes
Comparing Footnotes
|
3ce0bac to
a4f011a
Compare
7c4f44f to
17591fa
Compare
Merge activity
|
rolldown/rolldown#7936 relies on this. You can see how Rolldown uses this at description of that PR. Additionally, it can also simplify the use case when you want to get the scope ID where the `Reference` occurs. See follow-up PR #18059
a4f011a to
e2221e6
Compare
17591fa to
727939f
Compare

Simplify the use cases mentioned in #18053. After that PR, we can access the
scope_iddirectly from theReference, eliminating the need for an intermediate step to get the node first.😅: I didn't expect there would be a lot of performance improvement in the Mangler.