Skip to content

docs: correct #497's changelog figures and walk comments - #541

Merged
JuroOravec merged 1 commit into
mainfrom
docs/497-followup-wording
Oct 28, 2026
Merged

JuroOravec merged 1 commit into
mainfrom
docs/497-followup-wording

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

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.

  • Changelog figures. The entry mixed two benchmark runs. With the Rust core the PR was measured on, the <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.
  • Docstrings and comments in _template_python.py. They now say what the walk carries down to each Python value: its c-if conditions, c-for variables 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 comments in 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_reads docstring 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

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]>
@JuroOravec
JuroOravec merged commit 096a508 into main Oct 28, 2026
1 of 24 checks passed
@JuroOravec
JuroOravec deleted the docs/497-followup-wording branch October 28, 2026 22:36
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.

1 participant