Skip to content

perf(app): omit unused PPR runtime#2223

Merged
james-elicx merged 2 commits into
cloudflare:mainfrom
TheAlexLichter:perf/omit-unused-ppr-runtime
Jun 22, 2026
Merged

perf(app): omit unused PPR runtime#2223
james-elicx merged 2 commits into
cloudflare:mainfrom
TheAlexLichter:perf/omit-unused-ppr-runtime

Conversation

@TheAlexLichter

@TheAlexLichter TheAlexLichter commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

This change moves PPR fallback-shell handling behind an optional runtime that is included only when Cache Components are enabled.

Normal apps without Cache Components omit about 2.35 KB gzip from the RSC bundle without changing request behavior.

It follows the same conditional-runtime pattern as #2194, #2196, and #2206.

@github-actions

github-actions Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Performance benchmarks

Compared e0972e1 against base 82d5f76 using alternating same-runner rounds. Next.js was unchanged and skipped.

2 improved · 0 regressed · 4 within ±1.5%

Scenario Framework Baseline Current Change
Client bundle size (gzip) vinext 132.8 KB 132.8 KB ⚫ +0.0%
Client entry size (gzip) vinext 118.7 KB 118.7 KB ⚫ -0.0%
Dev server cold start vinext 2.45 s 2.41 s 🟢 -1.8%
Production build time vinext 2.90 s 2.86 s 🟢 -1.6%
RSC entry closure size (gzip) vinext 92.2 KB 91.7 KB ⚫ -0.6%
Server bundle size (gzip) vinext 166.9 KB 164.8 KB ⚫ -1.3%

View detailed results and traces

🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head

@TheAlexLichter TheAlexLichter force-pushed the perf/omit-unused-ppr-runtime branch from a55cfeb to e0972e1 Compare June 21, 2026 07:54
@pkg-pr-new

pkg-pr-new Bot commented Jun 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vinext/cloudflare@2223
npm i https://pkg.pr.new/vinext@2223

commit: 6df2711

…t-resolution

# Conflicts:
#	packages/vinext/src/entries/app-rsc-entry.ts
@james-elicx james-elicx enabled auto-merge (squash) June 22, 2026 13:03
@james-elicx james-elicx merged commit 95b320f into cloudflare:main Jun 22, 2026
47 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