Files
mempalace/tests
mvalentsev 2b5dc6e8cb perf(miner): O(N) incremental line-number tally in chunk_text (#2054)
chunk_text recomputed line_start/line_end with a full-prefix
content.count("\n", 0, pos) per chunk (O(N*K) overall), so large files
ground for days. Keep the emitted values byte-identical but tally
newlines incrementally over the newly-scanned span (O(N) total), with a
from-scratch fallback that keeps every value exact.
2026-07-21 20:56:46 +05:00
..