Skip to content

Wrap and format Content lazily to stop at the needed height - #70

Merged
trissim merged 10 commits into
mainfrom
perf/native-content-height-consumption-20261005
Oct 5, 2026
Merged

trissim merged 10 commits into
mainfrom
perf/native-content-height-consumption-20261005

Conversation

@trissim

@trissim trissim commented Oct 5, 2026 •

Copy link
Copy Markdown

Content._wrap_and_format now yields lines one at a time instead of building a list, and the callers that only need part of the result stop early with islice. The height computation counts the lines without keeping them. The change is in content.py and two test files are updated.

@trissim
trissim marked this pull request as ready for review October 5, 2026 15:00
Copilot AI balanced review requested due to automatic review settings October 5, 2026 15:00
@trissim
trissim merged commit c5e7eba into main Oct 5, 2026
0 of 22 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim trissim changed the title Bound native Content formatting by original render height Wrap and format Content lazily to stop at the needed height Oct 11, 2026
@trissim
trissim deleted the perf/native-content-height-consumption-20261005 branch October 11, 2026 20:05
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.

2 participants