Parallel Write performance improvements #695
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
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.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #695"
general
weight: 0.35
r-devulap
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
After this update the speedup is more along the lines of 24x - 32x
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
parallelGraphConstructionhas been added toConstructionParametersas a Boolean value. If set toYesGrid will use parallel writes in graph construction. If set toNoGrid 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" />