code wiki / _hdl_build / nx_race_sov_worker.nx
nx_race_sov_worker.nx
buildroot/runtime/_hdl_build/nx_race_sov_worker.nx
about
nx_race_sov_worker.nx -- the SOVEREIGN LANE of the IM6 beat-sqlite race.
Does the exact same logical storage work the competitor lane does, and
self-times ONLY the storage-engine work (parse excluded on both lanes):
write <prefix>: bulk-load the unique census records -> one committed
segment (fsync'd, indexed) -> SOVW us= count=
read <prefix>: keyed lookup of every record via the binary-search
index path, verifying each is found -> SOVR us= count=
The orchestrator (nx_infomgmt_race) compares these numbers against the
sqlite lane's self-timed numbers. license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_canon_cid.nxnx_seg_store.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 15 | const K_MAGIC_1000000000: i64 = 1000000000 |
| 16 | const K_MAGIC_2048: i64 = 2048 |
| 17 | const K_MAGIC_1024: i64 = 1024 |
functions
| 19 | func rw_p(s: *u8) -> i64 |
| 30 | func rw_pn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 32 | func rw_starts(b: *u8, off: i64, lim: i64, s: *u8) -> i64 called by 1: rw_parse |
| 42 | func rw_streq(a: *u8, b: *u8) -> i64 |
| 54 | func rw_parse(kout: *i64, eout: *i64, lout: *i64) -> i64 |
| 134 | func main(argc: i64, argv: *i64) -> i64 |