Skip to main content

Module lr_map

Module lr_map 

Source
Expand description

Lock-free concurrent map built on left_right.

LrMap keeps two copies of a HashMap — readers see one copy while the writer mutates the other. On publish the copies swap, giving readers a consistent, wait-free snapshot.

Best for read-heavy workloads with infrequent writes (caches, registries).

Structs§

LrMap
A concurrent map optimized for read-heavy workloads.