compile_ctbnodes_dir_to_ctbnbdl

Function compile_ctbnodes_dir_to_ctbnbdl 

Source
pub fn compile_ctbnodes_dir_to_ctbnbdl(
    src_dir: &Path,
    dst_dir: &Path,
    framing: CtbnbdlFramingDcs,
) -> Result<usize>
Expand description

Compiles all .ctbnodes chunk files in src_dir into grouped active .ctbnbdl bundle files in dst_dir (up to MAX_NODES_PER_BUNDLE = 1,000,000 nodes or MAX_BYTES_PER_BUNDLE = 50 MB per bundle), removing any stale .ctbnodes or obsolete .ctbnbdl files in dst_dir.

When src_dir == dst_dir (e.g., assets/data/graph), this also compiles all filtered-out inactive (superseded/retracted) nodes into dst_dir.join("system").

Returns the number of active .ctbnbdl files written or updated in dst_dir.