Consider internally representing identifiers from globals and class fields as unique numbers
Open
optimization
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
This could potentially speed up hash map access for these values, since we can just key off the number rather than the identifier string.
We could use some incrementing number as we compile the code. We shouldn't use the hash values of the strings, since those could collide.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files, tests, or entry points. Start by locating how globals, class fields, and identifier strings are represented during compilation, then determine the affected lookup paths and define benchmarks or tests that show numeric identifiers preserve behavior and improve access.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100