Skip to content

Skip layout in Static.update when only the text styling changed - #85

Merged
trissim merged 4 commits into
mainfrom
perf/static-content-layout-inference-20261006
Oct 7, 2026
Merged

trissim merged 4 commits into
mainfrom
perf/static-content-layout-inference-20261006

Conversation

@trissim

@trissim trissim commented Oct 7, 2026 •

Copy link
Copy Markdown

Static.update now defaults layout to None. If the widget measures itself from its plain Content and the new content equals the old content, it only repaints, otherwise it requests layout as before. Passing True or False still forces the choice. A new _has_native_content_measurement method makes this check, and two test files are added or updated.

@trissim
trissim marked this pull request as ready for review October 7, 2026 02:18
Copilot AI balanced review requested due to automatic review settings October 7, 2026 02:18

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 merged commit 533eaa8 into main Oct 7, 2026
2 of 22 checks passed
@trissim trissim changed the title Avoid layout for paint-only Static Content updates Skip layout in Static.update when only the text styling changed Oct 11, 2026
@trissim
trissim deleted the perf/static-content-layout-inference-20261006 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