Skip to content

perf(sway/window): avoid tree fetches for simple events#7

Open
SaveTheRbtz wants to merge 1 commit into
masterfrom
codex-sway-window-event-fastpath
Open

perf(sway/window): avoid tree fetches for simple events#7
SaveTheRbtz wants to merge 1 commit into
masterfrom
codex-sway-window-event-fastpath

Conversation

@SaveTheRbtz

Copy link
Copy Markdown
Owner

Summary

  • Use Sway window event payloads for focused-window title and mark updates.
  • Ignore window events that do not affect the module label or workspace classes.
  • Keep the existing IPC_GET_TREE fallback for structural events such as focus, move, close, and floating changes.

Why

Profiles showed the remaining hot path in sway/window: every window event synchronously requested and parsed the full tree. Sway window events already include the affected container, so simple non-structural updates can avoid the extra IPC_GET_TREE round trip and full-tree JSON parse.

Testing

  • ninja -C build
  • meson test -C build
  • ninja -C build-perf-hotpaths-debug
  • meson test -C build-perf-hotpaths-debug

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