You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 70d76cc
Browse filesBrowse the repository at this point in the historyBrowse files
Eliminate redundant per-page-class join in isBracketedForTagHelperAttribute
The shared 'page' variable forced the evaluator to redundantly repeat
the expensive same-basic-block join once per RazorPageBase-derived
class (e.g. 525 classes in one real-world repo) instead of once per
distinct shared WriteLiteral/Begin/EndWriteTagHelperAttribute Method.
Resolving each call independently is semantically equivalent (the
per-instance correlation is already guaranteed by
hasImplicitThisQualifier() + same BasicBlock) and removes an
O(page-classes x calls) blowup that caused unbounded runtime on
Razor-heavy codebases.
Validated: direct DB runs against 3 real repos (before/after result
counts unchanged, cache-cleared A/B equivalence test), plus MRVA runs
on 2-core (45+min hang -> 4m22s) and 4-core (3m35s) GitHub Actions
runners for the same repo batch.
No change note: this predicate was introduced by this same unmerged
PR and has never shipped, so this is pre-release refinement, not a
behavior/perf fix to released code.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 463cbe9c-9db5-425f-8784-63ea319314b9
0 commit comments