Skip to content

Comments

Compat size optimizations#5020

Merged
JoviDeCroock merged 1 commit intov10.xfrom
compat-size-optimizations
Feb 12, 2026
Merged

Compat size optimizations#5020
JoviDeCroock merged 1 commit intov10.xfrom
compat-size-optimizations

Conversation

@JoviDeCroock
Copy link
Member

No description provided.

@github-actions
Copy link

github-actions bot commented Feb 12, 2026

📊 Tachometer Benchmark Results

Summary

duration

  • create10k: unsure 🔍 -1% - +0% (-5.15ms - +3.61ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -0% - +0% (-0.04ms - +0.04ms)
    preact-local vs preact-main
  • hydrate1k: faster ✔ 0% - 3% (0.04ms - 1.57ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -1% - +2% (-0.16ms - +0.26ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -0% - +3% (-0.04ms - +1.59ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -4% - +9% (-0.07ms - +0.18ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -1% - +0% (-0.33ms - +0.14ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -3% - +5% (-1.00ms - +1.35ms)
    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.00ms - +0.00ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -5% - +9% (-0.35ms - +0.58ms)
    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 🔍 -3% - +3% (-0.03ms - +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.00ms - +0.01ms)
    preact-local vs preact-main

Results

create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local888.92ms - 895.06ms-unsure 🔍
-1% - +0%
-5.15ms - +3.61ms
preact-main889.63ms - 895.89msunsure 🔍
-0% - +1%
-3.61ms - +5.15ms
-

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.52ms - 16.58ms-unsure 🔍
-0% - +0%
-0.04ms - +0.04ms
preact-main16.53ms - 16.57msunsure 🔍
-0% - +0%
-0.04ms - +0.04ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local59.72ms - 60.81ms-faster ✔
0% - 3%
0.04ms - 1.57ms
preact-main60.53ms - 61.61msslower ❌
0% - 3%
0.04ms - 1.57ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local6.46ms - 7.15ms-unsure 🔍
-5% - +9%
-0.35ms - +0.58ms
preact-main6.37ms - 7.00msunsure 🔍
-9% - +5%
-0.58ms - +0.35ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.18ms - 16.50ms-unsure 🔍
-1% - +2%
-0.16ms - +0.26ms
preact-main16.15ms - 16.43msunsure 🔍
-2% - +1%
-0.26ms - +0.16ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.72ms - 3.73ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-main3.72ms - 3.73msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-
replace1k
  • Browser: chrome-headless
  • Sample size: 100
  • Built by: CI #5356
  • Commit: 9f2bfc7

duration

VersionAvg timevs preact-localvs preact-main
preact-local57.87ms - 59.13ms-unsure 🔍
-0% - +3%
-0.04ms - +1.59ms
preact-main57.21ms - 58.24msunsure 🔍
-3% - +0%
-1.59ms - +0.04ms
-

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-local26.04ms - 26.84ms-unsure 🔍
-1% - +3%
-0.28ms - +0.83ms
preact-main25.78ms - 26.55msunsure 🔍
-3% - +1%
-0.83ms - +0.28ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local31.65ms - 32.95ms-unsure 🔍
-4% - +2%
-1.24ms - +0.65ms
preact-main31.91ms - 33.28msunsure 🔍
-2% - +4%
-0.65ms - +1.24ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local32.36ms - 33.44ms-unsure 🔍
-1% - +3%
-0.48ms - +1.04ms
preact-main32.09ms - 33.15msunsure 🔍
-3% - +1%
-1.04ms - +0.48ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local25.63ms - 25.96ms-faster ✔
0% - 2%
0.04ms - 0.57ms
preact-main25.89ms - 26.30msslower ❌
0% - 2%
0.04ms - 0.57ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local24.05ms - 25.37ms-unsure 🔍
-5% - +3%
-1.17ms - +0.74ms
preact-main24.23ms - 25.62msunsure 🔍
-3% - +5%
-0.74ms - +1.17ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local21.87ms - 22.41ms-slower ❌
1% - 4%
0.16ms - 0.84ms
preact-main21.43ms - 21.84msfaster ✔
1% - 4%
0.16ms - 0.84ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 230
  • Built by: CI #5356
  • Commit: 9f2bfc7

duration

VersionAvg timevs preact-localvs preact-main
preact-local1.91ms - 2.11ms-unsure 🔍
-4% - +9%
-0.07ms - +0.18ms
preact-main1.89ms - 2.03msunsure 🔍
-9% - +3%
-0.18ms - +0.07ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local0.99ms - 1.04ms-unsure 🔍
-3% - +3%
-0.03ms - +0.03ms
preact-main0.99ms - 1.04msunsure 🔍
-3% - +3%
-0.03ms - +0.03ms
-
todo

duration

VersionAvg timevs preact-localvs preact-main
preact-local32.59ms - 32.83ms-unsure 🔍
-1% - +0%
-0.33ms - +0.14ms
preact-main32.60ms - 33.00msunsure 🔍
-0% - +1%
-0.14ms - +0.33ms
-

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-local29.02ms - 30.50ms-unsure 🔍
-3% - +5%
-1.00ms - +1.35ms
preact-main28.67ms - 30.49msunsure 🔍
-5% - +3%
-1.35ms - +1.00ms
-

usedJSHeapSize

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

tachometer-reporter-action v2 for CI

@github-actions
Copy link

Size Change: -138 B (-0.17%)

Total Size: 79.2 kB

Filename Size Change
compat/dist/compat.js 4.18 kB -34 B (-0.81%)
compat/dist/compat.mjs 4.11 kB -36 B (-0.87%)
compat/dist/compat.module.js 4.11 kB -36 B (-0.87%)
compat/dist/compat.umd.js 4.25 kB -32 B (-0.75%)
ℹ️ View Unchanged
Filename Size
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
dist/preact.js 4.78 kB
dist/preact.min.js 4.8 kB
dist/preact.min.module.js 4.8 kB
dist/preact.min.umd.js 4.82 kB
dist/preact.mjs 4.79 kB
dist/preact.module.js 4.79 kB
dist/preact.umd.js 4.83 kB
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

@JoviDeCroock JoviDeCroock changed the title Transform forEach to some and consolidate condition Compat size optimizations Feb 12, 2026
@JoviDeCroock JoviDeCroock merged commit 084b75f into v10.x Feb 12, 2026
14 checks passed
@JoviDeCroock JoviDeCroock deleted the compat-size-optimizations branch February 12, 2026 18:49
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
This was referenced 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