ZEON256 ZEON256
← BACK

Unsafe Read Beyond of Death

ZEON256
ZEON256 2026-05-31
Rust Safety Performance

Cool optimization trick and I think Daniel Lemire did post something like this before. That being said, I wont be using gxhash any time soon because of how this technique when written in Rust (or even C/C++ too) it is UB even if the underlying hardware allows it. If you want to use this technique you have a few options

  • Check the final ASM output (not scalable lol)
  • Just write it using ASM directly

The top comment and the linked Github Issue has more details