Files
tantivy/stacker/src/lib.rs
T
Paul Masurel 360a5ebbbb Add ExpUnrolledLinkedList::iter_chunks (#3218)
* Add ExpUnrolledLinkedList::iter_chunks

Adds an iterator over the chunks of an ExpUnrolledLinkedList, one slice
per block, in write order.

read_to_end now goes through ExpUnrolledLinkedListChunks::read_to_end,
which keeps the plain block loop instead of calling next() per chunk.
It also reserves the exact output length upfront, computed from the
block metadata.

* Export ExpUnrolledLinkedListChunks and make read_exact_into public

So callers can name the type returned by iter_chunks, and use
read_exact_into from outside the crate.
2026-10-27 16:04:24 +01:00

21 lines
645 B
Rust

#![cfg_attr(all(feature = "unstable", test), feature(test))]
#[cfg(all(test, feature = "unstable"))]
extern crate test;
mod arena_hashmap;
mod expull;
#[cfg(not(feature = "compare_hash_only"))]
mod fastcmp;
mod fastcpy;
mod memory_arena;
mod shared_arena_hashmap;
pub use self::arena_hashmap::ArenaHashMap;
pub use self::expull::{ExpUnrolledLinkedList, ExpUnrolledLinkedListChunks};
pub use self::memory_arena::{Addr, MemoryArena};
pub use self::shared_arena_hashmap::{SharedArenaHashMap, compute_table_memory_size};
/// When adding an element in a `ArenaHashMap`, we get a unique id associated to the given key.
pub type UnorderedId = u32;