Skip to content

perf(demo): ask for a 4-core machine - #25

Merged
RodolpheKouyoumdjian merged 1 commit into
mainfrom
perf/codespace-startup
Sep 10, 2026
Merged

RodolpheKouyoumdjian merged 1 commit into
mainfrom
perf/codespace-startup

Conversation

@RodolpheKouyoumdjian

Copy link
Copy Markdown
Contributor

A demo is judged on how long it takes to show something, and a cold Codespace
spends that budget before Drift has run at all — building the container,
installing the extension, then onCreateCommand, which the editor waits for
(deliberately) so the dependency change is in place when startup analysis runs.

The default 2-core machine makes each of those steps roughly twice as slow.
hostRequirements: { cpus: 4 } makes Codespaces offer the 4-core machine as the
smallest that qualifies.

It spends the visitor's own allowance twice as fast — 30 hours a month on the
free tier rather than 60 — which is the right trade for something opened once
for ten minutes, and the wrong one for a container somebody works in all day.

Prebuilds: deliberately not enabled

The other lever, and the bigger one. Left off because it is a cost decision,
not a technical one
: sixteen devcontainers means sixteen prebuild
configurations, each consuming Actions minutes and storage billed to the
trydrift organisation — which currently configures no billing, no spending
limit and no payment method.

Documented in docs/browser-demo.md with where to turn it on, rather than
silently enabled.

🤖 Generated with Claude Code

A demo is judged on how long it takes to show something, and a cold Codespace
spends that budget before Drift has run at all — building the container,
installing the extension, then `onCreateCommand`, which the editor waits for so
the dependency change is in place when startup analysis runs.

The default 2-core machine makes each of those steps roughly twice as slow.
Asking for 4 cores makes Codespaces offer the 4-core machine as the smallest
that qualifies. It spends the visitor's own allowance twice as fast — 30 hours a
month on the free tier rather than 60 — which is the right trade for something
opened once for ten minutes, and the wrong one for a container somebody works in
all day.

The other lever, prebuilds, is left off deliberately and documented as a cost
decision: sixteen devcontainers means sixteen prebuilds, each billing Actions
minutes and storage to an organisation that currently configures no billing.

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 10, 2026 13:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@RodolpheKouyoumdjian
RodolpheKouyoumdjian merged commit 2f1c5d9 into main Sep 10, 2026
1 check passed
@RodolpheKouyoumdjian
RodolpheKouyoumdjian deleted the perf/codespace-startup branch September 10, 2026 13:16
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