Repository navigation
Description
#232 (native insert_many: ragged int and float lists on the columnar entry) was closed unmerged although its gating figures were strong, because a control path it did not touch moved. I would like to measure it again with a design that holds that control path fixed between the arms.
What it changed
Native insert_many kept rows with lists of ints or floats (the token and weight columns of a sparse-vector load, fixed or ragged) on the columnar entry arcadedb_n_insert_colp, instead of sending the chunk as one JSON text (#231). It added a decoder to the native library (BulkOps.java), so arm B was a different build of the library than arm A.
Figures
B/A, median and 95% interval, below 1 = #232 faster or smaller (first run, confirmatory run):
| figure | role | first run | confirmatory run |
|---|---|---|---|
| sparse vectors, 30 nonzeros per row | gating | 0.572 [0.562, 0.576] | 0.571 [0.563, 0.579] |
| sparse vectors, 5 to 60 nonzeros per row (ragged) | gating | 0.598 [0.591, 0.607] | 0.601 [0.594, 0.607] |
| plain rows with no list column | control | 0.919 [0.894, 0.955] | 0.903 [0.847, 0.978] |
| peak RSS | info | 1.048 [1.031, 1.088] | 1.075 [1.060, 1.099] |
Why it closed
The rule needed the control inside [0.97, 1.03]. Plain rows cross the same entry in both arms, so a moving control says the two library builds differed as a whole, and the rule could not credit the gain to the list path. Peak RSS was also higher.
#221 (JVM float[] vectors through the float32 matrix) closed the same way: gating 0.650, 0.608 and 0.694 in its final run while its control moved, which its comment calls "a weakness of this study's design, not a finding about the PR". Its change has since shipped in #339 (merged 2026-11-10, without a speed gate), so #232 is the one left to measure.
Design fix
- One build in both arms. Native insert_many: ragged int and float lists go through the columnar entry (kinds I Q E D) #232 already has a switch that keeps list columns on the JSON path (
ARCADEDB_NATIVE_COLP_LISTS=0). Arm A is Native insert_many: ragged int and float lists go through the columnar entry (kinds I Q E D) #232's wheel with the switch at 0, arm B the same wheel without it, so the plain-row path is the same bytes in both arms. - Interleaved arms (ABBA) with an A/A on the plain-row control, which must now come out flat.
- Peak RSS as a guard figure, not only reported.
- The rule written before the first run.
Where the patch is
The branch perf/native-sparse-columnar is deleted. The head f91cf142aa is still reachable as refs/pull/232/head (git fetch origin pull/232/head) and needs a rebase onto main before a new wheel is built.
Activity