Skip to content

perf(cli): lazy-load commands - #393

Merged
QuiiBz merged 1 commit into
mainfrom
cli/lazy-load-commands
Oct 19, 2026
Merged

QuiiBz merged 1 commit into
mainfrom
cli/lazy-load-commands

Conversation

@QuiiBz

@QuiiBz QuiiBz commented Oct 17, 2026

Copy link
Copy Markdown
Member

We are currently loading all commands of the CLI when running any command, which is wasteful and kinda slow. This PR adds lazy-loading of the required commands, so commands like sbx --version get 3x faster and use 50% of the memory:

SCR-20261017-ndkr

Also disabling source maps and minifying the source code (still only in the CLI) to reduce the package size from 1.5MB to 310KB

@vercel

vercel Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sandbox-sdk-ai-example Ready Ready Preview Oct 17, 2026 9:56pm UTC
workflow-code-runner Ready Ready Preview Oct 17, 2026 9:56pm UTC

Request Review

@QuiiBz
QuiiBz merged commit 8aa3a4b into main Oct 19, 2026
14 checks passed
@QuiiBz
QuiiBz deleted the cli/lazy-load-commands branch October 19, 2026 13:17
@github-actions github-actions Bot mentioned this pull request Oct 19, 2026

This branch was successfully deployed

4 active deployments
Preview – sandbox — e981dd3e Deployed Oct 17, 2026 by vercel[bot]
Preview – sandbox-sdk-ai-example — e981dd3e Deployed Oct 17, 2026 by vercel[bot]
Preview – workflow-code-runner — e981dd3e Deployed Oct 17, 2026 by vercel[bot]
Preview – sandbox-cli — e981dd3e Deployed Oct 17, 2026 by vercel[bot]
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