oxc-project
oxc
BlogDocsChangelog

Performance History

Latest Results

feat(oxc_str): upgrade Ident with precomputed hash for fast equality (#18400) ## Summary Upgrade `Ident` to store a precomputed hash for fast equality checks and efficient hash map operations. ### Changes - Change `Ident` layout from simple `&str` wrapper to `NonNull<u8>` + `len: u32` + `hash: u32` - Fast `PartialEq` between `Ident`s: compare length and hash first before doing full string comparison - `Hash` impl uses precomputed hash (no `Borrow<str>` - lookups must use `&Ident`) - Add `Ident::new()` and `Ident::len()` methods - Add specific `PartialEq` implementations for `&Ident`, `&str`, `String`, `Atom`, `&Atom` - Add `rustc-hash` dependency for `FxHasher` - Fix enum layout calculation in ast_tools to round size to alignment ### Layout - **64-bit**: 16 bytes, align 8 (ptr 8 + len 4 + hash 4) - **32-bit**: 12 bytes, align 4 (ptr 4 + len 4 + hash 4) Using two separate `u32` fields instead of a single `u64` keeps 4-byte alignment on 32-bit platforms, avoiding size increases in AST structs. πŸ€– Generated with [Claude Code](https://claude.ai/code)
refactor/ident-precomputed-hash
2 hours ago
fix: rerun cargo run -p oxc_linter_codegen
yue4u:object-shorthand
3 hours ago
[autofix.ci] apply automated fixes
01-24-perf_semantic_preserve_identifier_hash
5 hours ago

Active Branches

feat(oxc_str): upgrade Ident with precomputed hash for fast equality
last run
2 hours ago
#18400
CodSpeed Performance Gauge
-4%
#17688
CodSpeed Performance Gauge
-1%
Β© 2026 CodSpeed Technology
Home Terms Privacy Docs