vec: fixed compressed, still slow par read, cli: made raw the default

This commit is contained in:
nym21
2025-06-12 16:31:54 +02:00
parent 54ea6cc53b
commit 37405384a2
7 changed files with 27 additions and 7 deletions

View File

@@ -73,6 +73,13 @@ where
StoredVec::Compressed(v) => v.stored_len(),
}
}
#[inline]
fn stored_len_(&self, mmap: &Mmap) -> usize {
match self {
StoredVec::Raw(v) => v.stored_len_(mmap),
StoredVec::Compressed(v) => v.stored_len_(mmap),
}
}
#[inline]
fn pushed(&self) -> &[T] {