concurrent-hash-map 0.0.6

This is a simple concurrent hash map written in Rust. It uses a design where read operations never lock against reads or writes, but writes can sometimes lock against other writes. In order to maintain concurrency on insert/removal operations, the map is segmented into several sub-maps, each of which has its own write lock. This code is currently extremely pre-alpha. Most particularly, it leaks memory on table growth and drop, as well as when using keys or values that (even transitively) use custom Drop implementations. It should be possible to fix this, but a clean solution will require support for running destructors in crossbeam (see crossbeam issue #13). For now it may be useful for long lived hashmaps with a relatively steady size, but I don't recommend using it for anything important :-).
Documentation
Build #30789 2016-09-18 14:48:28

# rustc version rustc 1.13.0-nightly (cbe4de78e 2016-09-05)

# docs.rs version cratesfyi 0.2.0 (fb1be72 2016-08-29)

# build log Updating registry `https://github.com/rust-lang/crates.io-index` Downloading concurrent-hash-map v0.0.6 Compiling libc v0.2.16 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.16/src/lib.rs --crate-name libc --crate-type lib -g --cfg feature=\"use_std\" --cfg feature=\"default\" -C metadata=1417726cb94dbc83 -C extra-filename=-1417726cb94dbc83 --out-dir /home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps --cap-lints allow` Compiling crossbeam v0.2.10 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-0.2.10/src/lib.rs --crate-name crossbeam --crate-type lib -g -C metadata=2f53cae32cd2c9f1 -C extra-filename=-2f53cae32cd2c9f1 --out-dir /home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps --cap-lints allow` Compiling rand v0.3.14 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.14/src/lib.rs --crate-name rand --crate-type lib -g -C metadata=49a08859d086fffe -C extra-filename=-49a08859d086fffe --out-dir /home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps --extern libc=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps/liblibc-1417726cb94dbc83.rlib --cap-lints allow` Documenting concurrent-hash-map v0.0.6 Running `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/concurrent-hash-map-0.0.6/src/lib.rs --crate-name concurrent_hash_map -o /home/cratesfyi/concurrent-hash-map-0.0.6/doc -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.6/debug -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps --extern rand=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps/librand-49a08859d086fffe.rlib --extern crossbeam=/home/cratesfyi/concurrent-hash-map-0.0.6/debug/deps/libcrossbeam-2f53cae32cd2c9f1.rlib`