Repository navigation
docs: correct #497's changelog figures and walk comments - #541
Merged
Merged
Conversation
The changelog entry for #497 mixed two benchmark runs. With the core the PR was measured on, the c-if/c-elif chain at 256 levels takes about 24 ms instead of about 3.6 s, and the flat template has 400 expressions in 200 sibling elements. The entry now also says what got faster, rather than how. The walk's docstrings and comments now say what the walk carries down (c-if conditions, c-for variables and the slot fill) in place of the unexplained "controls", and the test comment says the walk runs once for all hosts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
A follow-up to #535 (#497), which merged before its last text review was folded in. It changes only text: the changelog entry, docstrings and comments.
<c-if>/<c-elif>chain at 256 levels takes about 24 ms instead of about 3.6 seconds, not 25 ms instead of 3.7 seconds. The flat template is 400 expressions in 200 sibling elements, which the entry now says. The entry also drops the sentence about how the editor does the work, and keeps what got faster._template_python.py. They now say what the walk carries down to each Python value: itsc-ifconditions,c-forvariables and slot fill. Before, they called these "controls" without explaining the word. The end-tag comment now says why the guard is there, and the sort comment says why the sort stays.test_template_python.py. One said the walk runs "once for every host", which describes the old behavior; it now says "once for all hosts". The_condition_readsdocstring now says it counts reads, not nodes.No behavior changes, so I ran only ruff and ruff format on the two Python files. Both pass.
🤖 Generated with Claude Code