Precompile common Qt6/std headers in rviz_common #1908
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 152 lines diff across 1 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.301
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1908"
general
weight: 0.35
ahcorde
Summary
Follow-up to #1907.
Profiling
rviz_commonwithclang -ftime-traceshowed it's even more parsing-dominated:Frontendaccounts for ~93% of total compile time (2110.5sExecuteCompiler/ 1961.3sFrontend, summed across 163 TUs), with Qt6 headers (qobject.h,qwidget.h,qstring.h,qmetatype.h,qchar.h,QObject,QString,qicon.h,QWidget,qglobal.h,qvariant.h, ...) dominating cumulative header self-time.This PR adds a package-local, non-installed
src/precompile.hppand enablestarget_precompile_headers()on therviz_commontarget, behind a newRVIZ_COMMON_ENABLE_PCHoption.Measurements
Clean build of
rviz_commononly:| Run | Config | Wall | CPU (user) |
|---|---|---|---|
| A | no PCH | 1m31.7s | 5m34.8s |
| B | PCH | 0m31.9s | 1m41.4s |
| C | no PCH | 2m33.3s | 6m56.6s |
| D | PCH | 0m44.2s | 1m44.7s |
Windows verification
Verified via ci_launcher (
ci_windows). Build time for this package: 4m41s with PCH vs a historical no-PCH baseline of ~25.7min median (n=8 recentnightly_win_relruns) — ~82% reduction, even larger than the Linux results above (consistent with this package's higher parsing-dominated share of total compile time).