Repository navigation
Description
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 byvite 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
- Build: main
6e0cadb2cor later.bun install --frozen-lockfile, thenbun run buildinservices/platform. Servedist/withvite previewagainst a local backend. - 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. - 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. - 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.mjsandseed-threads.mjs;search-bench.mjs, with--noblurand--noblur-class <class>;ab-blur.sh,api-search.mjsandcontention2.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:
- 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.
- Search timing unchanged: the first result paints ≤ 200 ms after the last key, and all sources answer ≤ 500 ms after it.
- 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.
- 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:
- perf: Chat page scrolling jitter on devices without dedicated GPU #162 (closed): chat scrolling jitter without a dedicated GPU.
- Bug: Dialogs and the command palette do not return focus to their trigger on close (focus falls to <body>) — WCAG 2.4.3 #1988 (closed): the command palette's focus return.
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
- I searched existing issues and this hasn't been reported yet. I searched for backdrop, blur, search palette, command palette, Cmd+K, search dialog slow, INP and keystroke. Only perf: Chat page scrolling jitter on devices without dedicated GPU #162 (closed, chat scrolling without a GPU) is related.
Activity
yannickmonney commentedon Oct 5, 2026
Scope of the diagnostic arms (precision note).
backdrop-filter: nonearm overrides everybackdrop-filteron the page, not only the palette's.--noblur-class) overrides one class,.backdrop-blur-mdor.backdrop-blur-xl, across the whole page.At
6e0cadb2c, the chat page renders no other element with either class at 1440 px:StickyHeader, the standaloneAdaptiveHeaderand the docs header aren't on that route;mdup.So the per-class rows isolate the palette's own surfaces:
backdrop-blur-md): 252 → 72 ms per key;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).perf(ui): drop the search palette's backdrop blurs
tale-code-bot commentedon Oct 31, 2026
Status from TALE-69:
The fix is on main. 3019f2c removed both blurs. The overlay is now
bg-black/50with nobackdrop-blur-md. The panel is an opaquebg-bg-basewith nobackdrop-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 tosearch-command.browser.test.tsx. It opens the palette and checks three things:backdrop-filter;The test fails if any of these comes back:
backdrop-blur-mdon the overlay,backdrop-blur-xlon the panel,bg-bg-base/95on 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.agent(25 results)ffmpeg(1 result)The browser's cgroup took 1.0 CPU with the blurs and 0.5 without them.
Not measured:
Item 4, the other blurred surfaces. These three are filed:
bg-card, so nobody sees it, but it repaints on every drag frame. Not measured.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.test(ui): keep backdrop blurs out of the search palette
docs(manual): name the palette's blur guard in the performance register
test(ui): keep backdrop blurs out of the search palette
perf(ui): drop the fullscreen mermaid viewer's backdrop blur
perf(platform): drop the task list drag clone's backdrop blur
perf(ui): drop the fullscreen mermaid viewer's backdrop blur
perf(platform): drop the task list drag clone's backdrop blur
17 remaining items
perf(platform): drop the task list drag clone's backdrop blur
perf(ui): drop the fullscreen mermaid viewer's backdrop blur
perf(platform): drop the task list drag clone's backdrop blur
perf(ui): drop the fullscreen mermaid viewer's backdrop blur
perf(platform): drop the task list drag clone's backdrop blur
perf(ui): drop the fullscreen mermaid viewer's backdrop blur
perf(platform): drop the task list drag clone's backdrop blur
perf(ui): drop the fullscreen mermaid viewer's backdrop blur
perf(platform): drop the task list drag clone's backdrop blur
perf(ui): drop the fullscreen mermaid viewer's backdrop blur
perf(platform): drop the task list drag clone's backdrop blur
perf(ui): drop the fullscreen mermaid viewer's backdrop blur
perf(platform): drop the task list drag clone's backdrop blur
perf(ui): drop the fullscreen mermaid viewer's backdrop blur
perf(platform): drop the task list drag clone's backdrop blur