Skip to content

perf: optimize Rslib startup build#803

Merged
thymikee merged 1 commit into
mainfrom
codex/rslib-startup-bundling
Jun 15, 2026
Merged

perf: optimize Rslib startup build#803
thymikee merged 1 commit into
mainfrom
codex/rslib-startup-bundling

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

Upgrade Rslib-related tooling and tighten the CLI startup fast paths without changing the published command contract.

The accepted path keeps JS/package size effectively flat while improving cheap startup medians: --version from 34.2 ms to 31.0 ms and --help from 43.8 ms to 37.8 ms in the local 50-run size report. Rejected bundle-split/minify prototypes either grew the package or broke the CLI.

Validation

Verified with formatter, Oxc lint, TypeScript, MCP metadata check, Rslib build, CLI smoke tests, package export tests, and the size report comparison. pnpm check:tooling hung locally before output, so its direct component commands were run and passed individually.

@github-actions

github-actions Bot commented Jun 13, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-15 06:52 UTC

@github-actions

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.3 MB 1.3 MB -469 B
JS gzip 413.6 kB 413.0 kB -598 B
npm tarball 546.7 kB 546.7 kB -63 B
npm unpacked 1.8 MB 1.8 MB -409 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 30.3 ms 28.6 ms -1.7 ms
CLI --help 55.1 ms 47.2 ms -7.9 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/9722.js +329.5 kB +98.5 kB
dist/src/9873.js +134.6 kB +40.3 kB
dist/src/5299.js +71.8 kB +23.1 kB
dist/src/9919.js +55.5 kB +18.4 kB
dist/src/cli-help.js +49.8 kB +16.6 kB

@thymikee thymikee merged commit 9e16511 into main Jun 15, 2026
20 checks passed
@thymikee thymikee deleted the codex/rslib-startup-bundling branch June 15, 2026 06:51
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.

1 participant