← Back to Pull requests

perf(exec): Reuse normalized join probes for consecutive keys on NVIDIA Vera #140

Closed
unknown closed this pull request without merging on Nov 23, 2026 09:57 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 10:50 UTC
Author

On NVIDIA Vera, look for repeated normalized keys before mixing the hashes for a dense probe batch. NEON compares consecutive keys in groups of eight. Software prefetch and the existing full lookup run once per equal-key run. Each selected row receives its normalized key, mixed hash and matching build-row pointer. The dispatch samples eight pairs in batches of at least 256 rows and activates on six equal pairs.

Separate SF1000 input sampling found 89% adjacent repeats in the normalized join rows observed in NDS Q23.1 and Q23.2. With little repetition, as in NDS-H Q8 and Q21, the existing lookup remains active.

Increment over eight PRs and #139

| Suite | Reference mean | Candidate mean | Elapsed-time reduction | Pair 1 / Pair 2 |
|---|---:|---:|---:|---|
| NDS | 117.698 s | 117.847 s | -0.13% | -0.38% / +0.13% |
| NDS-H | 62.585 s | 61.865 s | +1.15% | +0.20% / +2.09% |

Join stack vs development

| Suite | Reference mean | Candidate mean | Elapsed-time reduction | Pair 1 / Pair 2 |
|---|---:|---:|---:|---|
| NDS | 122.404 s | 117.847 s | +3.72% | +3.75% / +3.70% |
| NDS-H | 63.395 s | 61.865 s | +2.41% | +3.55% / +1.23% |

The suite comparisons used two unprofiled and counterbalanced full runs per arm, the same SF1000 data and the historical jemalloc settings. Both incremental arms use the same Snappy library. The development comparison includes the preceding changes. Across the four builds and two suites all 1,016 timed queries matched. The paired results show the variation between the two observations.

Standalone branch on Vera

The test suite passed 56 tests, including the two instances of the new regression test. One existing test skipped and seven were disabled. The test checks hits, saved normalized keys and mixed hashes at dispatch and window boundaries, on dense and sparse selections and a table with deleted rows.

Eight counterbalanced native observations compared this PR head with its unmodified parent. Times are medians for the immutable table. The same executable also checks correctness after erasing keys.

| Input | Absent | Parent ns/row | PR ns/row | Reduction |
|---|---:|---:|---:|---:|
| Distinct | 0% | 5.535 | 5.519 | +0.28% |
| Distinct | 90% | 6.501 | 6.532 | -0.47% |
| Short runs | 0% | 3.977 | 1.205 | +69.69% |
| Short runs | 50% | 4.071 | 1.228 | +69.83% |
| Long runs | 0% | 3.491 | 0.717 | +79.47% |

Queries that triggered the optimization

In the unprofiled comparison with the eight PRs and #139, NDS Q23.1 fell from 5.758 to 5.445 seconds and Q23.2 from 7.300 to 7.125 seconds. Each query improved in both blocks. Summed executor task CPU fell 3.14% and 3.03%, respectively. The full NDS mean rose 0.13% and the full NDS-H mean fell 1.15%. NDS-H Q18 accounts for about 0.47 seconds of the suite change. In two otherwise matched Snappy-equipped profiles, combined self cycles in the normalized probe and its repeated-key helper fell 47.2% in Q23.1 and 29.0% in Q23.2. The helper accounted for just 0.003% of all NDS-H executor cycles. The two NDS-H elapsed observations do not establish that repeated-key handling caused the gain there.

Full four-way A/B and captured input shapes · All executor hotspots and query-level join samples

Diff: 483 lines (+362 / -121) across 6 files Reviewer: thirtiseven Review duration: 4266m
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 483 lines diff across 6 files
0.47
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.370
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #140"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 47.3% (MEDIUM) · Higher = larger blast radius
47.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 18.7% · Safe to merge
18.7%