per-chunk categories storage

This commit is contained in:
vcoppe committed 2026-10-09 17:55:07 +02:00
1 parent dc36de2a48
commit 77929cfa04
7 files changed
+327 -143

No files matched your search

-7
View File
@@ -7,13 +7,6 @@
pub struct Categories(Vec<String>);
impl Categories {
/// A table with these names, in the order of their codes (at most [`Self::CAPACITY`] of them
/// are kept).
pub fn from_names(mut names: Vec<String>) -> Self {
names.truncate(Self::CAPACITY);
Self(names)
}
/// Maximum number of distinct values.
pub const CAPACITY: usize = u8::MAX as usize;