Use predicated SVE loads for partial string value-ID words #138
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 420 lines diff across 5 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.362
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #138"
general
weight: 0.35
thirtiseven
Vera executor profiles of NDS Q4, Q23.1, Q23.2 and Q47 showed two library copy calls in the short-string value-ID path. A call from the prefetch code builds the key used to locate the hash-table chunk. A second call builds the lookup key. The sampled copies at these two sites were 1–8 bytes long.
On little-endian AArch64 builds with SVE, load the valid bytes with an SVE predicate and use the first 64-bit lane. This zero-pads a short key and avoids reading across a buffer boundary. The same operation supplies the final partial word of the existing CRC for longer keys. Other builds use the existing bits::loadPartialWord implementation. The new unit test checks the encoded key and its hash for lengths 0–8 at each alignment, then checks the CRC for lengths 9–32.
Vera SF1000
The reference combines the six previously submitted changes with Velox #137. The candidate adds the SVE change to that stack. Both used the historical jemalloc settings and 42 executors with eight task slots each. VectorHasher.cpp was retrained with the original 42-query PGO workload. Times are the mean summed query time of two full runs. Positive percentages mean less time.
| Suite | Reference | Candidate | Time saved | Pair 1 | Pair 2 |
|---|---:|---:|---:|---:|---:|
| NDS | 118.81 s | 118.12 s | +0.58% | +1.27% | −0.11% |
| NDS-H | 62.17 s | 62.08 s | +0.15% | +0.17% | +0.13% |
NDS Q47 saved 14.47% on average and Q23.2 saved 6.82%. Both queries improved in both orders. NDS total time changed direction between orders.
The candidate passed 44 enabled VectorHasher tests, including the new case. Two existing tests are disabled. A separate differential test checked 589,797 address/length combinations on Vera, including ranges abutting inaccessible pages. All 508 timed SQL results matched the reference answers.
At the computeValueIds entry point, with software prefetch 16 rows ahead, the 3–8-byte mix regressed 5.11%. The 0–32-byte mix improved 48.42% and the 9–47-byte mix improved 61.95%. Each operator result is the median of four interleaved runs. The full-suite evidence measures the incremental change on the combined stack. Tracking issue
Combined build versus the development branch
Both builds were measured in the same fresh SF1000 campaign. The reference is development commit 587bda4b5. The combined build includes all eight changes.
| Suite | Development | Combined build | Time saved | Pair 1 | Pair 2 |
|---|---:|---:|---:|---:|---:|
| NDS | 121.06 s | 117.19 s | +3.20% | +2.74% | +3.67% |
| NDS-H | 64.11 s | 62.33 s | +2.79% | +4.70% | +0.85% |
All 508 query results matched. Matched return-site profiles, operator breakdown and both complete A/Bs