Crates.io | concurrent_open_map |
lib.rs | concurrent_open_map |
version | 0.1.0 |
source | src |
created_at | 2024-07-10 01:49:17.695428 |
updated_at | 2024-07-10 01:49:17.695428 |
description | A concurrent hashmap implementation in Rust |
homepage | https://github.com/nnsgmsone |
repository | https://github.com/nnsgmsone/concurrent_open_map |
max_upload_size | |
id | 1297699 |
size | 51,112 |
This library provides a concurrent hash map implementation similar to Go's sync.Map
, with additional performance optimizations for the get
function.
get
function for faster reads.sync.Map
.// create a new hashmap
let mp: Map<u64, u64> = Map::new();
// set the value for key
mp.store(1, 1);
mp.store(1, 2);
mp.store(2, 1);
// get value by key
let v = mp.load(1)
// delete the value for a key.
m.delete(1)
hashmap
source code is available under the GPL License.