Implement --sibling-annex flag and k-mer family annex builder

Introduces a new `--sibling-annex` CLI flag that triggers the construction of a sibling-count/minorant annex for multi-genome indices. The implementation adds a `FamilyMask` data structure with memory-mapped I/O, enabling lock-free concurrent updates via atomic bitwise operations. Batched processing improves cache locality and parallelism, while helper functions derive family presence and minorant flags dynamically. The feature is exposed through an `IndexCache` extension trait, protected by an exclusive directory lock to prevent index corruption during construction.
This commit is contained in:
Eric Coissac committed 2026-08-28 20:29:01 +02:00
1 parent d084396aba
commit 920120d20e
10 files changed
+876 -15

No files matched your search

@@ -0,0 +1,11 @@
//! Sibling-annex construction algorithm: the cross-partition sweep that
//! fills in one layer's [`crate::siblings::FamilyMask`] slots — driven, one
//! layer at a time, by
//! [`crate::siblings::extensions::SiblingAnnexBuildExt`]. Kept apart from
//! that trait (and from the `siblingannex`/`helpers` data model) the same
//! way `obikindexer` splits `algorithms` from `extensions`: this module
//! depends on the data model, never the reverse.
mod annex;
pub(crate) use annex::build_layer_sibling_annex;