Skip to content

perf(react_compiler): de-monomorphize block rebuilding#24788

Draft
Boshen wants to merge 1 commit into
mainfrom
agent/react-compiler-transform-size
Draft

perf(react_compiler): de-monomorphize block rebuilding#24788
Boshen wants to merge 1 commit into
mainfrom
agent/react-compiler-transform-size

Conversation

@Boshen

@Boshen Boshen commented Jul 22, 2026

Copy link
Copy Markdown
Member

Extract the reactive transform block-rebuilding slow path so it is emitted once instead of once per transform implementation. The in-place fast path remains statically dispatched.

This reduces the arm64 macOS release example's __text by 8,128 bytes and its gzip size by 2,896 bytes.

Checks: cargo test -p oxc_react_compiler; just ready completed lint and check, with one unrelated parallel Oxlint suppression test failing transiently and passing in isolation.

AI assistance was used for implementation and measurement.

@codspeed-hq

codspeed-hq Bot commented Jul 22, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 10 untouched benchmarks
⏩ 66 skipped benchmarks1


Comparing agent/react-compiler-transform-size (63db830) with main (4b12840)2

Open in CodSpeed

Footnotes

  1. 66 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

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

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