concurrent-hash-map 0.0.5

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 #22212 2016-08-16T09:20:40.671771+00:00
# rustc version
rustc 1.12.0-nightly (54c0dcfd6 2016-07-28)
# docs.rs version
cratesfyi 0.2.0 (5dbd676 2016-07-30)

# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading concurrent-hash-map v0.0.5
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.5/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps --cap-lints allow`
Compiling libc v0.2.15
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.15/src/lib.rs --crate-name libc --crate-type lib -g --cfg feature=\"default\" --cfg feature=\"use_std\" -C metadata=1bd8847afb79f283 -C extra-filename=-1bd8847afb79f283 --out-dir /home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.5/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.5/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps --extern libc=/home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps/liblibc-1bd8847afb79f283.rlib --cap-lints allow`
Documenting concurrent-hash-map v0.0.5
Running `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/concurrent-hash-map-0.0.5/src/lib.rs --crate-name concurrent_hash_map -o /home/cratesfyi/concurrent-hash-map-0.0.5/doc -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.5/debug -L dependency=/home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps --extern rand=/home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps/librand-49a08859d086fffe.rlib --extern crossbeam=/home/cratesfyi/concurrent-hash-map-0.0.5/debug/deps/libcrossbeam-2f53cae32cd2c9f1.rlib`