In crates/fluxus-runtime/src/state.rs, we define a map struct:
#[derive(Default)]
pub struct KeyedStateBackend<K, V> {
state: Arc<RwLock<HashMap<K, V>>>,
}
And the dashmap has a similar definition:
pub struct DashMap<K, V, S = RandomState> {
shift: usize,
shards: Box<[CachePadded<RwLock<HashMap<K, V>>>]>,
hasher: S,
}
So we can replace it with dashmap
https://github.com/xacrimon/dashmap
In crates/fluxus-runtime/src/state.rs, we define a map struct:
And the dashmap has a similar definition:
So we can replace it with dashmap
https://github.com/xacrimon/dashmap