Closed aldanor closed 10 months ago
How do we do this without resorting to evil hacks and pointers?... 🤔
The only thing that comes to mind is:
hash_hasher
as the hash builder (to keep hashes untouched) for hashbrown
(for raw entry access) hashmapNot entirely sure it will work, but can give it a spin.
@ritchie46 I think we've broken the mutable dictionary array again 😄 (I've tested it a bit and it seems to not behave properly in some cases, inserting extra values into the value map instead of reusing old ones).
https://docs.rs/hashbrown/latest/hashbrown/struct.HashMap.html#method.raw_entry_mut
"Implementations of HashMap may need to recompute hashes when resizing"...
To confirm: