Repository navigation
Commit 1ad2c2d
perf: move BuildHasher leaf functions after RandomState code for I-cache locality
The _with_hasher leaf functions (~600 lines) were interleaved between
the hot RandomState functions, polluting the instruction cache for the
default path. Move all BuildHasherHashValue trait/impls and _with_hasher
leaf functions to the end of the file (after create_hashes_with_hasher,
before tests) so the hot default path stays tightly packed.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent 3a3bfc5 commit 1ad2c2d
1 file changed
Lines changed: 265 additions & 252 deletions
0 commit comments