Repository navigation
perf: reuse loop execution ASTs - #10
Merged
Merged
Conversation
This was referenced Jul 26, 2026
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Benchmarks
Measured with the existing nested-loop repro scripts under release builds on Windows, comparing pristine
origin/master(68b8024) against this branch:loopbaseline: 995.8, 718.6, 634.9 ms; patched: 531.9, 536.4, 535.8 msarithbaseline: 796.9, 758.8, 772.1 ms; patched: 713.0, 737.1, 674.9 msfunction-noopbaseline: 1051.4, 1048.2, 1020.2 ms; patched: 978.3, 992.6, 933.6 msfunction-args-arithbaseline: 1658.2, 1710.4, 1654.6 ms; patched: 1550.7, 1497.7, 1523.4 msTests
cargo fmttest_function_body_can_be_while_command_sequencetest_pipeline_feeds_while_command_stagetest_function_assignment_arithmetic_expansion_accepts_base_hashtest_arithmetic_for_looptest_arithmetic_for_commandtest_while_commandtest_time_prefix_executes_while_command_sequenceNote: full
cargo test --test executor_testsfails locally on both this branch and pristineorigin/masterwith the same 3 PATH/environment-sensitive tests that unexpectedly resolveC:\Program Files\Git\bin\bash.exe.