Skip to content

perf(label): skip redundant markup updates#4

Closed
SaveTheRbtz wants to merge 1 commit into
masterfrom
codex-label-update-hotpath
Closed

perf(label): skip redundant markup updates#4
SaveTheRbtz wants to merge 1 commit into
masterfrom
codex-label-update-hotpath

Conversation

@SaveTheRbtz

@SaveTheRbtz SaveTheRbtz commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add ALabel helpers that skip identical label and tooltip markup writes.
  • Use them in hot sway/window and mpd label paths.

Why

Profiles showed GTK/Pango text layout and rendering work on the main thread. Avoiding no-op markup writes reduces repeated layout work without changing rendered text or module behavior.

Testing

  • ninja -C build
  • meson test -C build

@SaveTheRbtz SaveTheRbtz force-pushed the codex-label-update-hotpath branch from be09523 to 734773c Compare June 4, 2026 22:05
@SaveTheRbtz SaveTheRbtz changed the title [codex] Reduce redundant label updates perf(label): skip redundant markup updates Jun 4, 2026
@SaveTheRbtz SaveTheRbtz force-pushed the codex-label-update-hotpath branch from 734773c to 2190871 Compare June 4, 2026 22:19
@SaveTheRbtz SaveTheRbtz marked this pull request as ready for review June 4, 2026 22:57

Copy link
Copy Markdown
Owner Author

Moved upstream to Alexays#5111.

@SaveTheRbtz SaveTheRbtz closed this Jun 8, 2026
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