refactor(obilayeredmap): support generic payload types

Replace the hardcoded `Counts` module with a generic `LayerData` trait, parameterizing `Layer` and `LayeredMap` over arbitrary payload types. This decouples read-path access from build-path logic, enabling both set membership and count-based indexing via `PersistentCompactIntVec`. Adds the `obicompactvec` dependency, implements streaming layer construction, and expands test coverage for persistence and multi-layer resolution.
This commit is contained in:
Eric Coissac
2026-05-14 09:24:25 +08:00
parent 0b3fcf3cf0
commit f48f7500cd
9 changed files with 309 additions and 245 deletions
+3 -2
View File
@@ -4,8 +4,9 @@ version = "0.1.0"
edition = "2024"
[dependencies]
obikseq = { path = "../obikseq" }
obiskio = { path = "../obiskio" }
obikseq = { path = "../obikseq" }
obiskio = { path = "../obiskio" }
obicompactvec = { path = "../obicompactvec" }
ptr_hash = "1.1"
cacheline-ef = "1.1"
epserde = "0.8"