Skip to content

Re-measure #232 with a study that holds the control path fixed #561

Todo

Description

@tae898

#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

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

  1. added this to the 27.1.1 milestone on Dec 1, 2026
  2. added
    performance
    native
    on Dec 1, 2026
  3. added
    python
    vector
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

nativeperformancepythonvector

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions