Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneeszack

Relationships

≡ duplicate of #4285

#4301 serve resolves realpath for thousands of files under .swamp/outputs/swamp/worker/set_status

Opened by zack · 11/2/2026· Shipped 11/20/2026

Follow-up from swamp-club#4280; reported in the same measurements.

A 3-second strace of an idle swamp serve showed 833 realpath-style walks, each about 12 readlink calls, so about 3,000 failing readlink calls per second. 48% of them resolve paths under .swamp/outputs/swamp/worker/set_status, which held 24,215 files at the time. Running swamp run gc by hand removed 36,623 outputs and cut statx calls about 10x, so the cost scales with the size of the outputs directory between gc runs.

Find which serve path canonicalizes every output file (likely an output listing or search that calls realPath or assertSafePath per entry), and avoid per-file realpath for files directly inside a directory already known to be contained. Also consider whether worker set_status outputs need to be persisted per call at all.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNEDCLASSIFICATION+ 2 MORESESSION_SUMMARIZED

Shipped

11/20/2026, 8:24:55 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/20/2026, 8:20:08 PM
zack linked duplicate of #428511/20/2026, 8:24:54 PM

Sign in to post a ripple.