You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mmap-bitvec is a library for working with mmap-backed bit-vectors and some simple
6
-
data structures derived from bit-vectors.
5
+
`mmap-bitvec` is a library for working with bit-vectors backed by memory-mapped files. Included is a simple Bloom filter built on top of such bit-vectors.
7
6
8
-
## Benchmarks
9
-
10
-
To run benchmarks you need to download a bfield.mmap file, I used `s3://refgenomics-datafiles/dbs/mg_targeted_loci_20160517/bfield.mmap` in
11
-
the root of the repo and then run `cargo +nightly bench`.
12
-
13
-
## Example
7
+
## Examples
14
8
9
+
Using a memory-mapped bit-vector:
15
10
```rust
16
-
letmutb=BitVec::from_memory(128).unwrap();
11
+
// Build an in-memory bit-vector with a capacity of 128 bits.
0 commit comments