[GH-ISSUE #1386] perf(slurp2): full-size Engine avatars and per-card report sheets slow Slurp on phones #706

Closed
opened 2026-10-20 17:29:56 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1386

Originally assigned to: @Gunterlie on GitHub.

Problem

Slurp loads slowly on a phone, mostly when it opens, on Creator profiles and on Discover.

Evidence

Profile of production slurp2 0.3.40 in headless Chromium at 390×844 with 4× CPU throttle:

  • Engine avatars at full size. Opening Slurp downloads 17 avatar images, 16.6 MB in total (1–2.5 MB card PNGs shown 44 px wide). Discover downloads 14.4 MB more, and the return to Hub 10.4 MB. variantUrl in slp-media-src.ts adds ?width= only to /api/slurp2/ URLs, so /api/avatars/file/* URLs skip the WebP variants that Slurp makes for its own media. These downloads also fill the browser's 6 connections per host. API calls that take 1–80 ms on the server then wait about 230 ms in the browser.
  • The report sheet on every card. SlpReportModal is mounted closed on every post card and reply, with a mutation hook and about 8 translation calls. It was the largest single Slurp component on mount: 60–78 ms on open, on Creator profiles and on the return to Hub.
  • The ambient canvas. It measures every image from a timer while a screen mounts, which forces layout: 177 ms on open.

The Engine part (the chat selection button forces a layout on every app scroll) is Pasta-Devs/Marinara-Engine#7640.

Originally created by @Gunterlie on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1386 Originally assigned to: @Gunterlie on GitHub. ## Problem Slurp loads slowly on a phone, mostly when it opens, on Creator profiles and on Discover. ## Evidence Profile of production slurp2 0.3.40 in headless Chromium at 390×844 with 4× CPU throttle: - **Engine avatars at full size.** Opening Slurp downloads 17 avatar images, 16.6 MB in total (1–2.5 MB card PNGs shown 44 px wide). Discover downloads 14.4 MB more, and the return to Hub 10.4 MB. `variantUrl` in `slp-media-src.ts` adds `?width=` only to `/api/slurp2/` URLs, so `/api/avatars/file/*` URLs skip the WebP variants that Slurp makes for its own media. These downloads also fill the browser's 6 connections per host. API calls that take 1–80 ms on the server then wait about 230 ms in the browser. - **The report sheet on every card.** `SlpReportModal` is mounted closed on every post card and reply, with a mutation hook and about 8 translation calls. It was the largest single Slurp component on mount: 60–78 ms on open, on Creator profiles and on the return to Hub. - **The ambient canvas.** It measures every image from a timer while a screen mounts, which forces layout: 177 ms on open. The Engine part (the chat selection button forces a layout on every app scroll) is Pasta-Devs/Marinara-Engine#7640.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#706
No description provided.