Skip to content

RCA Perf: Remove early termination check in analyze_expr_while - #3623

Merged
Stefan J. Wernli (swernli) merged 1 commit into
mainfrom
swernli/rca-perf-1
Aug 24, 2026
Merged

Stefan J. Wernli (swernli) merged 1 commit into
mainfrom
swernli/rca-perf-1

Conversation

@swernli

Copy link
Copy Markdown
Contributor

This is the first of a few RCA perf improvements. This removes code that performs checks to see if iterations of the stabilization loop in analyze_expr_while don't make progress and can be exited early. In practice, this has a perf cost rather than a perf gain, so is not really an optimization.


Stack created with GitHub Stacks CLI • Give Feedback 💬

This is the first of a few RCA perf improvements. This removes code that performs checks to see if iterations of the stabilization loop in `analyze_expr_while` don't make progress and can be exited early. In practice, this has a perf cost rather than a perf gain, so is not really an optimization.
@swernli
Stefan J. Wernli (swernli) added this pull request to the merge queue Aug 24, 2026
Merged via the queue into main with commit dd80ff0 Aug 24, 2026
14 checks passed
@swernli
Stefan J. Wernli (swernli) deleted the swernli/rca-perf-1 branch August 24, 2026 23:21
pull Bot pushed a commit to Mattlk13/qsharp that referenced this pull request Sep 29, 2026
The perf improvement from microsoft#3623 turns out to have been a bit of a trap.
While the early termination check does add a few ms to RCA on the
stdlib, it turns out to save an order of magnitude on compiling some
larger, complex Q# projects. Putting it back in will have a net benefit
for those cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants