Skip to content

Conversation

@JoviDeCroock
Copy link
Member

  • perf: use createElement when cloning

To avoid duplicating logic, we can use createElement with pre-populated props.

  • chore: reduce search logic

  • perf: reuse matched flag

  • chore: put the function inline again

  • perf: simplify to a ternary

  • perf: revert clone function


* perf: use createElement when cloning

To avoid duplicating logic, we can use `createElement` with
pre-populated props.

* chore: reduce search logic

* perf: reuse matched flag

* chore: put the function inline again

* perf: simplify to a ternary

* perf: revert clone function

---------

Co-authored-by: Jovi De Croock <[email protected]>
@github-actions
Copy link

📊 Tachometer Benchmark Results

Summary

A summary of the benchmark results will show here once they finish.

Results

The full results of your benchmarks will show here once they finish.

tachometer-reporter-action v2 for CI

@github-actions
Copy link

Size Change: -106 B (-0.13%)

Total Size: 78.7 kB

Filename Size Change
dist/preact.js 4.74 kB -14 B (-0.29%)
dist/preact.min.js 4.76 kB -17 B (-0.36%)
dist/preact.min.module.js 4.76 kB -16 B (-0.33%)
dist/preact.min.umd.js 4.78 kB -16 B (-0.33%)
dist/preact.mjs 4.75 kB -14 B (-0.29%)
dist/preact.module.js 4.75 kB -14 B (-0.29%)
dist/preact.umd.js 4.79 kB -15 B (-0.31%)
ℹ️ View Unchanged
Filename Size
compat/dist/compat.js 4.15 kB
compat/dist/compat.mjs 4.08 kB
compat/dist/compat.module.js 4.08 kB
compat/dist/compat.umd.js 4.21 kB
debug/dist/debug.js 3.82 kB
debug/dist/debug.mjs 3.82 kB
debug/dist/debug.module.js 3.82 kB
debug/dist/debug.umd.js 3.9 kB
devtools/dist/devtools.js 260 B
devtools/dist/devtools.mjs 274 B
devtools/dist/devtools.module.js 274 B
devtools/dist/devtools.umd.js 346 B
hooks/dist/hooks.js 1.54 kB
hooks/dist/hooks.mjs 1.57 kB
hooks/dist/hooks.module.js 1.57 kB
hooks/dist/hooks.umd.js 1.61 kB
jsx-runtime/dist/jsxRuntime.js 1.01 kB
jsx-runtime/dist/jsxRuntime.mjs 985 B
jsx-runtime/dist/jsxRuntime.module.js 985 B
jsx-runtime/dist/jsxRuntime.umd.js 1.08 kB
test-utils/dist/testUtils.js 473 B
test-utils/dist/testUtils.mjs 477 B
test-utils/dist/testUtils.module.js 477 B
test-utils/dist/testUtils.umd.js 555 B

compressed-size-action

Copy link
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JoviDeCroock JoviDeCroock merged commit 504eb5c into v10.x Jun 28, 2025
13 of 14 checks passed
@JoviDeCroock JoviDeCroock deleted the backport-perf-improvement branch June 28, 2025 16:52
@JoviDeCroock JoviDeCroock mentioned this pull request Jul 28, 2025
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.

4 participants