Module elastic

Module elastic 

Source
Expand description

Elastic sharded hash map backed by fabric memory.

ElasticShardSet distributes key-value pairs across multiple shards, each backed by its own grafos_std::mem::MemLease + FabricHashMap. Shards can be added or removed at runtime, and rehash redistributes entries across the current shard set.

Shard selection uses hash(key) % shard_count (FNV-1a after postcard serialization, matching FabricHashMap’s internal hash function).

Structs§

ElasticShardSet
A set of shards that can grow and shrink at runtime.