perf(linter/no-const-assign): use BindingPattern::get_symbol_ids#20533
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. |
There was a problem hiding this comment.
Pull request overview
Optimizes the eslint/no-const-assign linter rule’s handling of const/using variable declarators by iterating symbol IDs directly from the binding pattern.
Changes:
- Replace
get_binding_identifiers()+ident.symbol_id()withBindingPattern::get_symbol_ids()inNoConstAssign::run.
fe00bd7 to
2e1c700
Compare
4781da9 to
494f267
Compare
2e1c700 to
1a5811b
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
Merge activity
|
…20533) this should be faster as it avoids a deref to get the symbol id
494f267 to
76cd0b1
Compare
1a5811b to
9ddfb42
Compare
…xc-project#20533) this should be faster as it avoids a deref to get the symbol id

this should be faster as it avoids a deref to get the symbol id