Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(linter):
no_global_assign
rule: reduce name lookups (#6460)
2 small optimizations to this lint rule: 1. Get the name for the symbol only once, rather than on each turn of the inner loop (every reference to a symbol has the same name by definition). 2. Avoid creating temporary `CompactStr`s, which causes an allocation if the string is longer than 24 bytes.
- Loading branch information