Skip to content

Land size optimization separately#5018

Merged
JoviDeCroock merged 1 commit intov10.xfrom
land-size-optimization
Feb 12, 2026
Merged

Land size optimization separately#5018
JoviDeCroock merged 1 commit intov10.xfrom
land-size-optimization

Conversation

@JoviDeCroock
Copy link
Member

Extracted size optimization from #5017

@github-actions
Copy link

github-actions bot commented Feb 12, 2026

📊 Tachometer Benchmark Results

Summary

duration

  • create10k: unsure 🔍 -1% - +1% (-5.33ms - +4.58ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -0% - +1% (-0.06ms - +0.12ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -0% - +3% (-0.25ms - +1.77ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -1% - +2% (-0.19ms - +0.26ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -4% - +2% (-2.36ms - +1.05ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -5% - +1% (-0.10ms - +0.01ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -1% - +0% (-0.27ms - +0.13ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -5% - +1% (-1.53ms - +0.48ms)
    preact-local vs preact-main

usedJSHeapSize

  • create10k: unsure 🔍 +0% - +0% (+0.00ms - +0.00ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -0% - +0% (-0.01ms - +0.00ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -8% - +3% (-0.59ms - +0.22ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -4% - +3% (-0.04ms - +0.03ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -0% - +0% (-0.01ms - +0.01ms)
    preact-local vs preact-main

Results

create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local896.45ms - 903.64ms-unsure 🔍
-1% - +1%
-5.33ms - +4.58ms
preact-main897.01ms - 903.83msunsure 🔍
-1% - +1%
-4.58ms - +5.33ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local19.20ms - 19.20ms-unsure 🔍
+0% - +0%
+0.00ms - +0.00ms
preact-main19.20ms - 19.20msunsure 🔍
-0% - -0%
-0.00ms - -0.00ms
-
filter-list

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.54ms - 16.59ms-unsure 🔍
-0% - +1%
-0.06ms - +0.12ms
preact-main16.45ms - 16.62msunsure 🔍
-1% - +0%
-0.12ms - +0.06ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.56ms - 1.56ms-unsure 🔍
-0% - +0%
-0.01ms - +0.00ms
preact-main1.56ms - 1.57msunsure 🔍
-0% - +0%
-0.00ms - +0.01ms
-
hydrate1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local61.51ms - 63.00ms-unsure 🔍
-0% - +3%
-0.25ms - +1.77ms
preact-main60.81ms - 62.18msunsure 🔍
-3% - +0%
-1.77ms - +0.25ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local6.59ms - 7.18ms-unsure 🔍
-8% - +3%
-0.59ms - +0.22ms
preact-main6.80ms - 7.36msunsure 🔍
-3% - +9%
-0.22ms - +0.59ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.29ms - 16.53ms-unsure 🔍
-1% - +2%
-0.19ms - +0.26ms
preact-main16.18ms - 16.57msunsure 🔍
-2% - +1%
-0.26ms - +0.19ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.72ms - 3.72ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-main3.72ms - 3.72msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-
replace1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local63.11ms - 65.30ms-unsure 🔍
-4% - +2%
-2.36ms - +1.05ms
preact-main63.55ms - 66.16msunsure 🔍
-2% - +4%
-1.05ms - +2.36ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.01ms - 3.01ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-main3.01ms - 3.01msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-

run-warmup-0

VersionAvg timevs preact-localvs preact-main
preact-local29.14ms - 30.70ms-unsure 🔍
-5% - +2%
-1.68ms - +0.55ms
preact-main29.68ms - 31.27msunsure 🔍
-2% - +6%
-0.55ms - +1.68ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local34.80ms - 36.49ms-unsure 🔍
-3% - +4%
-1.11ms - +1.25ms
preact-main34.76ms - 36.39msunsure 🔍
-4% - +3%
-1.25ms - +1.11ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local35.05ms - 36.48ms-unsure 🔍
-4% - +1%
-1.54ms - +0.45ms
preact-main35.62ms - 36.99msunsure 🔍
-1% - +4%
-0.45ms - +1.54ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local28.73ms - 29.58ms-unsure 🔍
-2% - +2%
-0.67ms - +0.59ms
preact-main28.73ms - 29.66msunsure 🔍
-2% - +2%
-0.59ms - +0.67ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local26.85ms - 28.51ms-unsure 🔍
-2% - +6%
-0.61ms - +1.68ms
preact-main26.35ms - 27.94msunsure 🔍
-6% - +2%
-1.68ms - +0.61ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local23.21ms - 23.77ms-unsure 🔍
-2% - +1%
-0.57ms - +0.34ms
preact-main23.24ms - 23.97msunsure 🔍
-1% - +2%
-0.34ms - +0.57ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 240
  • Built by: CI #5354
  • Commit: bc6c2e6

duration

VersionAvg timevs preact-localvs preact-main
preact-local1.76ms - 1.84ms-unsure 🔍
-5% - +1%
-0.10ms - +0.01ms
preact-main1.80ms - 1.88msunsure 🔍
-1% - +5%
-0.01ms - +0.10ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.00ms - 1.06ms-unsure 🔍
-4% - +3%
-0.04ms - +0.03ms
preact-main1.01ms - 1.06msunsure 🔍
-3% - +4%
-0.03ms - +0.04ms
-
todo

duration

VersionAvg timevs preact-localvs preact-main
preact-local32.14ms - 32.42ms-unsure 🔍
-1% - +0%
-0.27ms - +0.13ms
preact-main32.21ms - 32.49msunsure 🔍
-0% - +1%
-0.13ms - +0.27ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.25ms - 1.25ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-main1.25ms - 1.25msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-
update10th1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local30.20ms - 31.51ms-unsure 🔍
-5% - +1%
-1.53ms - +0.48ms
preact-main30.62ms - 32.14msunsure 🔍
-2% - +5%
-0.48ms - +1.53ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local2.97ms - 2.98ms-unsure 🔍
-0% - +0%
-0.01ms - +0.01ms
preact-main2.98ms - 2.99msunsure 🔍
-0% - +0%
-0.01ms - +0.01ms
-

tachometer-reporter-action v2 for CI

@github-actions
Copy link

Size Change: -54 B (-0.07%)

Total Size: 79.3 kB

Filename Size Change
dist/preact.js 4.77 kB -7 B (-0.15%)
dist/preact.min.js 4.79 kB -10 B (-0.21%)
dist/preact.min.module.js 4.8 kB -8 B (-0.17%)
dist/preact.min.umd.js 4.81 kB -10 B (-0.21%)
dist/preact.mjs 4.78 kB -5 B (-0.1%)
dist/preact.module.js 4.78 kB -5 B (-0.1%)
dist/preact.umd.js 4.82 kB -9 B (-0.19%)
ℹ️ View Unchanged
Filename Size
compat/dist/compat.js 4.22 kB
compat/dist/compat.mjs 4.14 kB
compat/dist/compat.module.js 4.14 kB
compat/dist/compat.umd.js 4.28 kB
debug/dist/debug.js 3.85 kB
debug/dist/debug.mjs 3.85 kB
debug/dist/debug.module.js 3.85 kB
debug/dist/debug.umd.js 3.93 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

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

Dang, great find

@JoviDeCroock JoviDeCroock merged commit 3c8506d into v10.x Feb 12, 2026
14 checks passed
@JoviDeCroock JoviDeCroock deleted the land-size-optimization branch February 12, 2026 18:49
JoviDeCroock added a commit that referenced this pull request Feb 14, 2026
JoviDeCroock added a commit that referenced this pull request Feb 14, 2026
JoviDeCroock added a commit that referenced this pull request Feb 15, 2026
* Transform forEach to some and consolidate condition (#5020)

* Land size optimization separately (#5018)

* Make forEach --> some

* Backport core optimizations

* Revert "Land size optimization separately (#5018)"

This reverts commit 6bbfaee.

* Flag --> bits
@JoviDeCroock JoviDeCroock mentioned this pull request Feb 18, 2026
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

Comments