Skip to content

Bug: each keystroke in the ⌘K search palette takes 200–450 ms to paint without GPU compositing — its backdrop blur, not the search #4348

Closed

Description

@yannickmonney

What happened?

Every keystroke in the ⌘K search palette takes 200–450 ms to paint when the browser has no GPU compositing. The search isn't the cause; the palette's backdrop blur is.

On main 6e0cadb2c, in headless Chromium 141 (software compositing), each keystroke's interaction time had a median of 216–268 ms and a maximum of 456 ms. Event Timing measures that from the key to the next paint. 45 of 64 keys took over 200 ms. That holds in a large organization and in a small one alike.

The searches themselves are fast:

  • the first result paints 134–144 ms after the last key;
  • all five sources have answered 300–360 ms after it;
  • each search endpoint takes 9–42 ms on the server.

With the palette's backdrop-filter overridden by a diagnostic style (no code change), the keystrokes drop to a median of 24–40 ms (max 72 ms), and the results and requests stay the same.

How it was measured

  • Build: main 6e0cadb2c, a local production build served by vite preview, with the real backend (ROLE=all) and its own Postgres 16.14.
  • Browser and host: Chromium 141, headless, 1440×900. The host is a 4 vCPU VM, in a cgroup of 2 CPUs and 4 GiB.
  • Data: synthetic, created through the product's own doors.
    • The large organization has boards of 50, 350 and 2,000 tasks, 5,000 contacts and 200 chats.
    • The small one has 50 tasks, 50 contacts and 10 chats.
  • Flow: on the chat page, press Ctrl+K, then type the query at 120 ms per key. Per key, I took the longest Event Timing entry (keydown / keypress / beforeinput / input).
  • Design: B N N B blocks, with n=4 bursts per arm and case.
Case As shipped backdrop-filter: none (diagnostic)
Large org, zebra (52 results), per key 252 ms median (184–456); 17/20 keys over 200 ms 40 ms (24–72); 0/20
Large org, quokka (29 results), per key 216 ms (144–280); 14/24 over 200 ms 32 ms (24–64); 0/24
Small org, zebra (1 result), per key 268 ms (96–384); 14/20 over 200 ms 24 ms (16–64); 0/20
First result after the last key 135–144 ms 134 ms
Last search response after the last key 334–360 ms 300–358 ms
Longest main-thread task while typing ≤ 95 ms ≤ 51 ms

Removing one blur at a time (large org, zebra, n=3 bursts each):

Variant Median per key Max
Both blurs, as shipped 252 ms 456 ms
Only the panel's blur removed 160 ms 216 ms
Only the overlay's blur removed 72 ms 120 ms
Both removed 40 ms 72 ms

Backend paths (n=10 each, large organization; median, with min–max where given):

Endpoint Median
tasks/search 36–43 ms (2,400 tasks)
contacts/search 18–23 ms (5,000 contacts)
projects/search 9–19 ms
chat/threads/search 12–13 ms
documents/search-hub 10–12 ms

Each source is capped at 25 hits, and the palette fires one request per source per (debounced) query.

Root cause. In packages/ui/src/components/search/search-command.tsx:

  • the overlay is fixed inset-0 z-50 bg-black/50 backdrop-blur-md, a 12 px blur over the whole viewport;
  • the panel is … rounded-2xl border shadow-2xl backdrop-blur-xl, a 24 px blur behind the results.

Each keystroke re-renders the results list, and often changes the panel's height, so the compositor re-blurs the backdrop for that frame. Without GPU compositing, that costs about 200 ms or more per frame on this host. The CPU used by this cgroup rose with the blur too: 1.39 CPU on average against 0.85 without it, at the same typing pace.

The palette applies both blurs unconditionally. The mobile tab bar, by contrast, drops its blur under prefers-reduced-transparency, prefers-contrast: more and forced-colors (packages/ui/src/globals.css).

Limits. I measured without GPU acceleration (headless Chromium uses software compositing). A GPU-accelerated browser will pay much less. People who browse without one pay this cost on every keystroke: remote desktops and VDI, VMs, machines whose GPU is blocklisted, low-end or battery-saver devices. #162 fixed the same class of problem for chat scrolling "on devices without dedicated GPU". I didn't measure a GPU-accelerated browser or real hardware.

Steps to reproduce

  1. Build: main 6e0cadb2c or later. bun install --frozen-lockfile, then bun run build in services/platform. Serve dist/ with vite preview against a local backend.
  2. Browser: open the app in Chromium with --disable-gpu, or headless. Sign in, open any dashboard page, press Ctrl+K and type a word quickly.
  3. Measure: new PerformanceObserver(l => console.log(l.getEntries().map(e => [e.name, e.duration]))).observe({ type: 'event', durationThreshold: 16 }) shows input events of about 250 ms.
  4. Compare: inject *, *::before, *::after { backdrop-filter: none !important } and type again; the input events fall to about 30–40 ms.

The kit, raw JSONL and host monitor are in TALE-361's tale-361-perf-evidence-bundle.tar.gz, under occ-20261005T1115/:

  • prepare-r13.sh, seed-tasks.ts, seed-contacts.mjs and seed-threads.mjs;
  • search-bench.mjs, with --noblur and --noblur-class <class>;
  • ab-blur.sh, api-search.mjs and contention2.py.

Expected behavior

Typing in the search palette stays responsive on devices without GPU compositing, and the results are unchanged. The acceptance budget below applies on this harness (headless Chromium, software compositing), checked ABBA against the fix's base, n ≥ 4 bursts per case, with contention recorded:

  1. Keystrokes: each keystroke's interaction is ≤ 100 ms median and ≤ 200 ms at most, in both the large and the small organization. Today it is 216–268 ms median and 456 ms max; without blur, 24–40 ms and 72 ms.
  2. Search timing unchanged: the first result paints ≤ 200 ms after the last key, and all sources answer ≤ 500 ms after it.
  3. Kept:
    • the palette stays visually distinct from the page, at least with the dimmed overlay;
    • reduced-transparency, increased-contrast and forced-colors users get an opaque surface, like .mobile-tab-bar;
    • focus trap, labels and keyboard behaviour are unchanged.
  4. Other blurred surfaces: reviewed under the same budget where they repaint per keystroke or frame, for example loading-overlay, the sticky headers, and the hover action strips in the Home and chat rows.

Related:

Affected service

Platform. The component lives in packages/ui.

Version or commit

main 6e0cadb2c87b94cb348bb00cf4f78b107348d755 (5 Oct 2026).

Browser and OS

  • Chromium 141.0.7390.37, headless (software compositing), 1440×900, DPR 1, service workers blocked (Playwright-core 1.58).
  • Linux 7.0, a 4 vCPU VM in a cgroup of 2 CPUs and 4 GiB.

Relevant log output

as shipped:            per-key Event Timing median 252 ms (zebra, large org) · 216 ms (quokka) · 268 ms (zebra, small org)
backdrop-filter: none: per-key median 40 ms · 32 ms · 24 ms — same results, same requests

Before submitting

Activity

  1. added
    perf
    bug
    service: platform
    on Oct 5, 2026
  2. yannickmonney commented on Oct 5, 2026

    @yannickmonney
    ContributorAuthor

    Scope of the diagnostic arms (precision note).

    • All blurs off: the backdrop-filter: none arm overrides every backdrop-filter on the page, not only the palette's.
    • One blur off: each per-class row (--noblur-class) overrides one class, .backdrop-blur-md or .backdrop-blur-xl, across the whole page.

    At 6e0cadb2c, the chat page renders no other element with either class at 1440 px:

    • StickyHeader, the standalone AdaptiveHeader and the docs header aren't on that route;
    • the mobile header is hidden from md up.

    So the per-class rows isolate the palette's own surfaces:

    • the overlay (backdrop-blur-md): 252 → 72 ms per key;
    • the panel (backdrop-blur-xl): 252 → 160 ms per key.

    Other blurred elements on the page, such as the thread rows' hover action strips (backdrop-blur-sm, transparent until hover), are only affected by the all-off arm (40 ms).

  3. added
    agent-ready
    on Oct 29, 2026
  4. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    Collaborator

    Status from TALE-69:

    The fix is on main. 3019f2c removed both blurs. The overlay is now bg-black/50 with no backdrop-blur-md. The panel is an opaque bg-bg-base with no backdrop-blur-xl. The commit changed only those two class lists, so focus, labels and keyboard behaviour are unchanged. Every user now gets an opaque panel, including reduced-transparency, increased-contrast and forced-colors users.

    A guard against a regression is on its way. The branch test/search-palette-blur-guard (12c8064) adds a browser test to search-command.browser.test.tsx. It opens the palette and checks three things:

    • no element has a computed backdrop-filter;
    • the panel paints with alpha 1;
    • the overlay dims the page without hiding it.

    The test fails if any of these comes back: backdrop-blur-md on the overlay, backdrop-blur-xl on the panel, bg-bg-base/95 on the panel, or an overlay that no longer dims. The guard goes through review and the stable merge train, and its commit closes this issue when it reaches main.

    Measured on a different harness. This is an ABBA run on a production build of the docs site, whose search is the same SearchCommand.

    • Browser: Chromium 141.0.7390.37 headless shell, software rendering, 1440×900.
    • Typing: 120 ms per key; per key, the longest Event Timing entry, as in the issue.
    • Arms: "Blurs back" puts both blurs and the 95% panel back into the same build; "As on main" is the build unchanged.
    Query Blurs back: median (min–max), keys > 200 ms As on main: median (min–max), keys > 200 ms
    agent (25 results) 192 ms (96–368), 15/40 16 ms (16–56), 0/40
    ffmpeg (1 result) 204 ms (96–320), 24/48 16 ms (16–64), 0/48

    The browser's cgroup took 1.0 CPU with the blurs and 0.5 without them.

    Not measured:

    • the issue's own harness: the platform with its backend and Postgres, in the large and the small organization. So the search timing in Expected behavior 2 is unmeasured;
    • a GPU-accelerated browser.

    Item 4, the other blurred surfaces. These three are filed:

    The mermaid toolbar measured within budget, at 16 ms median.

    The platform's per-frame surfaces were not measured, because they need the platform and frame timing: the sticky headers, PanelHeader, LoadingOverlay, and the hover action strips in the Home and chat rows.

  5. 17 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugperfservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions