perf(linter/vue/prop-name-casing): precompile `ignoreProps` regex pattern #24413
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 #24413"
general
weight: 0.35
connorshea
is_ignoredinvue/prop-name-casingrecompiled each slash-wrappedignorePropspattern withRegex::newfor every prop it checked. This compiles the patterns once infrom_configurationinto anExact/Pattern(Regex)matcher enum stored on the options (serde/schemars-skipped field), and matches against that.Invalid regex patterns are dropped at compile time, which preserves the previous behavior (they could never match before either, and were not compared as literals).
Benchmark
Interleaved paired-sample benchmark (N=40, alternating order,
--silent), release binaries built from this branch and its merge-base.Fixture: 220 Vue SFCs / 35,200 props / 36.5K lines, single-rule oxlintrc with
ignoreProps: ["ignored_prop", "/^legacy/", "/_deprecated$/", "/^(alpha|beta)_/", "/[/"](one exact pattern, three regexes, one invalid regex).| | baseline | this branch |
|---|---|---|
| rule on | 66.87 ms | 16.69 ms |
| parse only | 8.47 ms | 8.41 ms |
Paired Δ of +50.17 ms (sd 2.18, t=146, faster in 40/40 pairs). The parse-only differential is null (+0.06 ms, t=0.2), so the saving is attributable to the rule and not to binary layout.
That works out to 4.0× on this fixture, but the multiplier is fixture-dependent — the work removed scales with
regex_pattern_count × prop_count, so denser configs show a larger ratio. The ~50 ms saved across 35K props is the more transferable number.Correctness
Verified with
--format=json(without--silent, which empties the JSON reporter'sdiagnosticsarray): both binaries emit the same 10,560 diagnostics, identical after sorting — the array order varies between runs because files are linted in parallel. The fixture includes canary props that are only ignored via the regex patterns, plus an invalid regex; the ignore semantics are unchanged.Disclosure
This change was implemented and benchmarked with AI assistance (Claude Code), and has been reviewed by the submitter.
🤖 Generated with Claude Code