Skip to main content

Crate assembly_hashmap

Crate assembly_hashmap 

Source
Expand description

Single-threaded u64 → u64 hashmap with x86-64 assembly operations.

Growth and allocation live in Rust. Lookup, insert variants, remove, clear, and iteration are implemented in native/hashmap.S on x86-64, or in a C reference of the same algorithm elsewhere.

use assembly_hashmap::AssemblyHashMap;

let mut map = AssemblyHashMap::new();
map.put(1, 10);
assert_eq!(map.get(1), Some(10));

Structs§

AllocError
Allocation failed while constructing or growing the map.
AssemblyHashMap
Auto-growing u64 -> u64 map backed by fixed-capacity native tables.
Iter

Constants§

USING_ASSEMBLY
True when this build links native/hashmap.S; false means it uses the non-x86-64 C reference operations.