bitvector, a simple bitvector implementation in Rust-lang
This crate is a modification of librustc_data_structures/bitvec.rs for set operator support.
Documentation
Visit the online documentation or run
cargo doc
to generate a local copy.
How to use
Add the following line to [dependencies]
in your Cargo.toml
file:
= { = "https://github.com/zhaihj/bitvector", = "master"}
Then you can use the BitVector
:
extern crate bitvector;
use *;
Performance Comparison against std/collections/Set
test bench::bench_bitset_operator ... bench: 222 ns/iter (+/- 22)
test bench::bench_bitset_operator_inplace ... bench: 122 ns/iter (+/- 5)
test bench::bench_btreeset_operator ... bench: 1,675 ns/iter (+/- 115)
test bench::bench_hashset_operator ... bench: 1,748 ns/iter (+/- 37)
LICENSE
MIT