Skip to content
Opensource internals
  • Posts

Hashmap

Sixteen Buckets at a Time: The SwissTable in Rust's HashMap

Oct 21, 2026 8 min read Jay Hubbert

Rust’s HashMap uses a SwissTable with SSE2 group scanning: one movemask compares 16 control bytes at once, and the top 7 bits of the hash act as a filter before any key comparison.

RustInternalsStdPerformanceHashmapSimd

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·