perf(semantic): preserve precomputed identifier hash throughout semantic analysis#18476
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
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. |
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
e51bb3c to
d788187
Compare
364ff6d to
db265d1
Compare
7398f9f to
6a1f84a
Compare
db265d1 to
ee1560a
Compare
6a1f84a to
b4a77e0
Compare
b4a77e0 to
83b24ca
Compare
…tic analysis
- Change `symbol_names` storage from `Vec<Atom>` to `Vec<Ident>` to preserve hash
- Update `create_symbol` and `set_symbol_name` to accept `Ident` instead of `&str`
- Use `clone_in` in scoping methods instead of reconstructing from `&str`
- Update traverse context APIs to use `Ident<'_>` instead of `&str`
- Use `Ident::new_const` for compile-time constant strings ("module", "Object")
- Use `Ident::from(Atom)` instead of `Ident::from(atom.as_str())`
- Modify `base54` to compute hash incrementally while building name, returning `Ident` directly
- Update mangler to use `Ident` throughout, eliminating rehashing of mangled names
Co-Authored-By: Claude Opus 4.5 <[email protected]>
83b24ca to
99ebd3c
Compare

symbol_namesstorage fromVec<Atom>toVec<Ident>to preserve hashcreate_symbolandset_symbol_nameto acceptIdentinstead of&strclone_inin scoping methods instead of reconstructing from&strIdent<'_>instead of&strIdentonce per unique name, not per symbolCo-Authored-By: Claude Opus 4.5 [email protected]