code wiki / (root) / nx_lib_compact.nx

nx_lib_compact.nx

buildroot/runtime/nx_lib_compact.nx

2024 B40 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_compact.nx -- compact the library seg_store: merge the many small segments (a killed per-record ingest left ~257) into one (latest-per-key wins -- additive, no data loss), restoring put_work headroom + read speed.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_lib_store.nx nx_lib_compact.nx

imports: nx_syscalls.nxnx_lib_store.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_munmap cp_puts sys_write cp_putn sys_mmap ↻ sys_write ↻ nx_lib_store_count sys_mmap ↻ nx_lib_store_index sys_mmap ↻ ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ↻ ss_scan_seglist ss_len sys_mmap ↻ ss_cat ↻ ss_readall ↻ ss_r32 ss_compact sys_mmap ↻ ss_manifest_dyn ↻ ss_cat ↻ ss_readall ↻ ss_r32 ↻ ss_kcmp

structs

none

consts

none

functions

7func cp_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
8func cp_putn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
17func main() -> i64