Skip to content

Guard each bar panel's first open and reopen - #15314

Merged
dhh merged 4 commits into
quattrofrom
perf/panel-open-budgets
Oct 14, 2026
Merged

dhh merged 4 commits into
quattrofrom
perf/panel-open-budgets

Conversation

@dhh

@dhh dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

What

Plan §2, bar panels. New test/shell.d/panel-open-budgets-test.sh: in a scratch shell, each default panel (audio, bluetooth, monitor, network; power where omarchy-battery-present) is timed from IPC open until the compositor maps its panel surface, then closed and reopened twice. First open pays the lazy content build (#15044); reopen must stay instant because content survives close.

Budgets before SPEED_PERCENT scaling: first 400ms, reopen 150ms. Measured here: first 11-66ms, reopen 8-11ms. Handlers are awaited via a harmless close first, since listPlugins reports manifests before IPC handlers register.

Verification

  • Passes here with a compositor (power reported as a proper skip — no battery in this machine).
  • Codex review (3 passes): handler readiness, skip accounting, battery helper; final pass clean.

From plans/overnight-quality.md §2.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Adds speed checks for each default bar panel's first open and two reopens in a scratch Quickshell session.

  • Panel timing tests measure each panel's first open and reopens.

The previous finding is fixed. No new actionable issues were found in the changes since the last review.

Reviews (2) · Last reviewed commit: "Only count confirmed panel states, and w..." · Reviewed by Greptile

Comment thread test/shell.d/panel-open-budgets-test.sh Resolved
@dhh

dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Greptile addressed: absent now only counts from a compositor query that actually answered (failed queries retry as unknown), and the startup wait checks the ping reply instead of the quiet form. Still passes here.

dhh added 4 commits October 14, 2026 03:22
Panels build content lazily on first open, so time each panel in a
scratch shell from IPC open to its surface mapping in the
compositor, then close and reopen: first open builds, reopen must
stay instant. First opens here: 12-66ms (audio slowest); budgets
400ms first / 150ms reopen before process-speed scaling. Power is
timed only where a battery exists, since it hides itself without
one.
@dhh
dhh force-pushed the perf/panel-open-budgets branch from 1998ec7 to 7eb48a8 Compare October 14, 2026 01:24
@dhh
dhh merged commit 7338958 into quattro Oct 14, 2026
@dhh
dhh deleted the perf/panel-open-budgets branch October 14, 2026 06:03
@emirb emirb added this to the 4.5 milestone Oct 17, 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.

2 participants