Repository navigation
perf(demo): ask for a 4-core machine - #25
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 thesmallest 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
trydriftorganisation — which currently configures no billing, no spendinglimit and no payment method.
Documented in
docs/browser-demo.mdwith where to turn it on, rather thansilently enabled.
🤖 Generated with Claude Code