mirror of
https://github.com/gorules/zen.git
synced 2026-11-29 08:06:51 +00:00
* fix(engine): bound table gap analysis memory, analyse expression columns Missing-case detection built the full atom/row partition for every column before charging the work budget. Nested ranges (`> 1`, `> 2`, ...) make that partition quadratic, so large tables (tens of thousands of rows) allocated gigabytes before giving up, exhausting the 1GB WASM memory. The partition size is now counted first and the budget checked before building it; results are unchanged (50k rows: ~10GB/28s -> ~650MB/1s natively). Columns without a field whose filled cells are all conditions on one field (`age > 50`, `age > 30`) are now analysed like field columns on that field: duplicates, unreachable rows, missing cases and compression. Compressed and missing-case cells are written back as full expressions (`age > 30`). Columns mixing fields or using non-analysable expressions stay opaque. * chore(engine): remove comments from table analysis changes