Skip to content

perf(runtime): reduce server-side render allocations - #17857

Draft
Princesseuh wants to merge 31 commits into
mainfrom
perf/server-render-allocations
Draft

perf(runtime): reduce server-side render allocations#17857
Princesseuh wants to merge 31 commits into
mainfrom
perf/server-render-allocations

Conversation

@Princesseuh

Copy link
Copy Markdown
Member

No description provided.

@changeset-bot

changeset-bot Bot commented Aug 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 37492e0

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the pkg: astro Related to the core `astro` package (scope) label Aug 29, 2026
@codspeed-hq

codspeed-hq Bot commented Aug 29, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 37.11%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 9 improved benchmarks
✅ 12 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
large-array (BufferedRenderer per child) 190.1 ms 113 ms +68.28%
large-array [streaming] 167.8 ms 104.4 ms +60.74%
many-slots (eager slot prerendering) 6.6 ms 4.2 ms +56.56%
many-components [streaming] 8.2 ms 5.4 ms +52.6%
many-components (markHTMLString, isHTMLString, validateProps) 9.6 ms 7.1 ms +34.4%
Rendering: streaming [true], .astro file 208.7 ms 157.2 ms +32.82%
Rendering: streaming [false], .astro file 199.7 ms 168.3 ms +18.67%
many-expressions [streaming] 13.7 ms 12.2 ms +12.32%
many-expressions (renderChild dispatch, escapeHTML) 15 ms 13.5 ms +11.36%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing perf/server-render-allocations (37492e0) with main (0389640)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (09d7772) during the generation of this report, so 0389640 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@Princesseuh
Princesseuh force-pushed the perf/server-render-allocations branch 5 times, most recently from de5b6eb to 400137f Compare September 2, 2026 20:19
@Princesseuh
Princesseuh force-pushed the perf/server-render-allocations branch from 400137f to e609ba6 Compare September 3, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant