You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: eliminate per-call TypedArray allocations in columnar merge hot path
readColumnValue() created new Float64Array/Int32Array/etc on every call
just to read a single element. In the k-way merge this is O(N log K)
temporary allocations. Now uses cached DataView for single-element reads.
copyColumnValue() created new Uint8Array views per row per column for
byte copies. Now caches _u8 view on the column and uses direct byte
loop for fixed-width elements (8 bytes = 8 iterations, cheaper than
allocating + GC'ing a typed array view).
Both caches (_dv, _u8) are lazily created on first access and reused
across all subsequent calls on the same column.
0 commit comments