Skip to content

Commit 07b9a99

Browse files
committed
document mem_dbg support
1 parent 020e123 commit 07b9a99

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ since the intrinsics speed up both `rank` and `select` operations by a factor of
3232
This feature requires AVX-512 support and uses unsafe code.
3333
It also enables a special iterator for the rank/select bit vector that uses vectorized operations.
3434
- `serde`: Enables serialization and deserialization of the data structures using the `serde` crate.
35+
- `mem_dbg` Enables `mem_dbg` support (see Dependencies).
3536
- `u16_lookup` Enables a larger lookup table for BP tree queries. The larger table requires 128 KiB instead of 4 KiB.
3637

3738
## Benchmarks
@@ -141,9 +142,11 @@ The `simd` feature uses unsafe code for AVX intrinsics, and performs operations
141142

142143
## Dependencies
143144
The library has no dependencies outside the Rust standard library by default.
144-
It has a plethora of dependencies for benchmarking purposes, but these are not required for normal use.
145+
145146
Optionally, the `serde` feature can be enabled to allow serialization and deserialization of the data structures,
146147
which requires the `serde` crate and its `derive` feature.
148+
Similarly, [`mem_dbg`](https://docs.rs/mem_dbg/latest/mem_dbg/) support can be enabled with the
149+
`mem_dbg` feature.
147150

148151
## License
149152
Licensed under either of

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
//! implementation, and an additional iterator for the `RsVec` data structure.
5454
//! - `serde` (disabled by default): Enables serialization and deserialization support for all
5555
//! data structures in this crate using the `serde` crate.
56+
//! - `mem_dbg` (disabled by default): Enables support for the `mem_dbg` crate on all structures,
57+
//! providing memory layout debugging capabilities, as well as a more granular function to
58+
//! calculate memory usage than `heap_size()`.
5659
//! - `bp_u16_lookup` (disabled by default): Uses a 16-bit lookup table for the balanced parenthesis
5760
//! tree data structure. This is faster, but requires 128 KiB instead of 4 KiB.
5861

0 commit comments

Comments
 (0)