← Back to Pull requests

Parallel Write performance improvements #695

Closed
unknown closed this pull request without merging on Oct 13, 2026 20:43 UTC
View on GitHub
unknown unknown commented on Jul 09, 2026 14:39 UTC
Author

This PR updates the graph parallel write process to take full advantage of the async write process. Whereas before although the write tasks were batched and handed off to achieve better performance they were not truly asynchronous. This update changes that to allow fully async graph index writes and increases the benefit of using parallel writes significantly. As an example prior to this update graph write time showed speedups of 4x - 8x using parallel writes

=== Testing Write Performance ===
Writing with NVQ + FUSED_ADC features...
Sequential write: 6074.18 ms
Parallel write:   1373.73 ms
Speedup:          4.42x

After this update the speedup is more along the lines of 24x - 32x
=== Testing Write Performance ===
Writing with NVQ + FUSED_ADC features...
Sequential write: 20147.29 ms
Parallel write:   627.52 ms
Speedup:          32.11x

This PR also introduces the ability to specify parallel writes as part of the test configuration through yaml files which is standard for BenchYAML and AutoBenchYAML test. The new parameter parallelGraphConstruction has been added to ConstructionParameters as a Boolean value. If set to Yes Grid will use parallel writes in graph construction. If set to No Grid will use the legacy serial writing pattern. If the parameter is omitted it will default to the legacy serial writes during graph construction.

Regression test results below. Note that the difference in index construction is relatively minor due to the pattern of using writeInline to write the features prior to the main call to write the vectors necessitating the avoidance of overwriting the existing feature data and limiting the capabilities of constructing the record in entirety before persisting to disk. In the future based on the plan to eventually deprecate this pattern the gains are in line with the statistics above.

<img width="1000" height="600" alt="Index_Construction_Time" src="https://github.com/user-attachments/assets/2304d4bf-d536-4b2a-ba90-aeda6156f9aa" />

Diff: 254 lines (+190 / -64) across 3 files Reviewer: r-devulap Review duration: 138604m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 254 lines diff across 3 files
0.39
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.332
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #695"
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: 39.1% (MEDIUM) · Higher = larger blast radius
39.1%
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: 15.4% · Safe to merge
15.4%