code wiki / _hdl_build / nx_race_search_worker.nx
nx_race_search_worker.nx
buildroot/runtime/_hdl_build/nx_race_search_worker.nx
about
nx_race_search_worker.nx -- the SOVEREIGN LANE of the IM6b SEARCH race
(beat-sqlite-FTS5 on the team-log corpus). Same logical work as the
competitor lane, self-timing ONLY the engine work (parse excluded):
write <prefix>: index the unique team-log lines -> chunked committed
segments (fsync'd, .keys + .terms/.post) -> SOVW us= count=
query <prefix>: open-store handle + the shared 9-query set (6 terms +
3 ANDs) x 200 iterations -> SOVQ us= q0=..q8=
Per-query counts are printed for the orchestrator's correctness
cross-check against the FTS5 lane (counts must MATCH or the race is
INVALID -- correctness before speed). license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.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 RS_MAGIC_1000000000: i64 = 1000000000 |
| 16 | const RS_MAGIC_2097152: i64 = 2097152 |
| 18 | const RS_ITERS: i64 = 200 |
| 19 | const RS_MAXDOCS: i64 = 4000 |
functions
| 21 | func rs_p(s: *u8) -> i64 |
| 32 | func rs_pn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 34 | func rs_streq(a: *u8, b: *u8) -> i64 called by 1: main |
| 45 | func rs_parse_file(path: *u8, pool: *u8, pooloff: *i64, ptrs: *i64, lens: *i64, n0: i64) -> i64 |
| 93 | func main(argc: i64, argv: *i64) -> i64 |