Skip to content

docs(readme): note what the install specifier costs per repaint - #570

Merged
sirmalloc merged 1 commit into
sirmalloc:mainfrom
zachthedev:docs-pin-install-version
Sep 2, 2026
Merged

docs(readme): note what the install specifier costs per repaint#570
sirmalloc merged 1 commit into
sirmalloc:mainfrom
zachthedev:docs-pin-install-version

Conversation

@zachthedev

@zachthedev zachthedev commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

The status line command runs once per repaint, so its invocation cost is paid continuously. The README
lists the command forms without saying what they cost, and the form the installer writes is the most
expensive one under Bun.

Windows, warm cache, median of five --version runs (exits before rendering):

command median
bunx -y ccstatusline@latest 633 ms
bunx -y ccstatusline@2.2.27 202 ms
bunx -y ccstatusline 207 ms
npx -y ccstatusline@latest 1082 ms
npx -y ccstatusline@2.2.27 1135 ms

bunx re-resolves the latest dist-tag every run, since a dist-tag is not cacheable; it rewrites its
temp package.json each time, and with BUN_CONFIG_REGISTRY on a closed port any version specifier
fails with ConnectionRefused downloading package manifest while the bare specifier runs offline.

Scoped to Bun deliberately: npx pinned measured marginally slower, so this is Bun's resolution
behavior, not the dist-tag. Docs only. Single Windows host, and the note says so.

The status line command runs once per repaint, so its invocation cost is
paid continuously, but nothing in the README said so or gave a number.

Record the measurement. Under Bun the specifier decides it: bunx
re-resolves the latest dist-tag against the registry every run, since a
dist-tag is not cacheable, and dropping @latest is worth about 430 ms
per repaint. Scope the claim to Bun, because npx measured 1082 ms on
@latest against 1135 ms pinned, so pinning buys nothing there.
@sirmalloc
sirmalloc merged commit 402532e into sirmalloc:main Sep 2, 2026
3 checks passed
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