Wire calculatePartialSums to native SIMD via Panama FFI downcall #651
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 327 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.347
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #651"
general
weight: 0.35
r-devulap
This change uses a native implementation of
calculatePartialSumsto accelerate PQ query scoring.On
ada002-100kwith FUSED_PQ (numPQsubspaces/M =96, JDK build 23.0.1+11-39), it delivers 2–3× higher QPS and 40–65% lower mean latency across common overquery settings. Index build time, disk usage, and heap usage show no meaningful regression. The optimization is isolated to the PQ path; non‑PQ queries are unaffected.Combined QPS and Latency Results (FUSED_PQ)
topK = 10
| Overquery | QPS (main) | QPS (native) | Speedup | Latency ms (main) | Latency ms (native) | Latency ↓ |
|----------|------------|--------------|---------|-------------------|---------------------|-----------|
| 1× | 8,987 | 26,101 | 2.9× | 0.462 | 0.171 | −63% |
| 2× | 8,361 | 21,706 | 2.6× | 0.505 | 0.202 | −60% |
| 5× | 7,199 | 14,364 | 2.0× | 0.590 | 0.292 | −51% |
| 10× | 5,796 | 9,640 | 1.7× | 0.731 | 0.431 | −41% |
topK = 100
| Overquery | QPS (main) | QPS (native) | Speedup | Latency ms (main) | Latency ms (native) | Latency ↓ |
|----------|------------|--------------|---------|-------------------|---------------------|-----------|
| 1× | 5,743 | 9,568 | 1.7× | 0.736 | 0.439 | −40% |
| 2× | 4,174 | 5,574 | 1.3× | 1.022 | 0.733 | −28% |
`
Summary of changes in this PR:
in NativeVectorUtilSupport to a new Panama FFI downcall for the nativecalculate_partial_sums_f32_512` SIMD implementation.