Skip to content

Comments

Hooks size optimizations#5021

Merged
JoviDeCroock merged 1 commit intov10.xfrom
hooks-size-optimizaitons
Feb 15, 2026
Merged

Hooks size optimizations#5021
JoviDeCroock merged 1 commit intov10.xfrom
hooks-size-optimizaitons

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% - +1% (-5.33ms - +8.83ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -0% - +0% (-0.01ms - +0.05ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -2% - +1% (-1.20ms - +0.66ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -0% - +1% (-0.04ms - +0.19ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -1% - +2% (-0.49ms - +1.31ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -4% - +6% (-0.08ms - +0.13ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -3% - +1% (-1.07ms - +0.27ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -4% - +3% (-1.45ms - +1.06ms)
    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.01ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -6% - +5% (-0.42ms - +0.30ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -1% - +1% (-0.02ms - +0.02ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -3% - +4% (-0.03ms - +0.05ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -2% - +4% (-0.02ms - +0.05ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -0% - +0% (-0.01ms - +0.00ms)
    preact-local vs preact-main

Results

create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local876.48ms - 886.94ms-unsure 🔍
-1% - +1%
-5.33ms - +8.83ms
preact-main875.20ms - 884.73msunsure 🔍
-1% - +1%
-8.83ms - +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.53ms - 16.57ms-unsure 🔍
-0% - +0%
-0.01ms - +0.05ms
preact-main16.51ms - 16.55msunsure 🔍
-0% - +0%
-0.05ms - +0.01ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local59.12ms - 60.23ms-unsure 🔍
-2% - +1%
-1.20ms - +0.66ms
preact-main59.20ms - 60.70msunsure 🔍
-1% - +2%
-0.66ms - +1.20ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local6.23ms - 6.75ms-unsure 🔍
-6% - +5%
-0.42ms - +0.30ms
preact-main6.30ms - 6.80msunsure 🔍
-5% - +6%
-0.30ms - +0.42ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.48ms - 16.70ms-unsure 🔍
-0% - +1%
-0.04ms - +0.19ms
preact-main16.50ms - 16.54msunsure 🔍
-1% - +0%
-0.19ms - +0.04ms
-

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
  • Browser: chrome-headless
  • Sample size: 100
  • Built by: CI #5363
  • Commit: 20f8445

duration

VersionAvg timevs preact-localvs preact-main
preact-local58.61ms - 59.97ms-unsure 🔍
-1% - +2%
-0.49ms - +1.31ms
preact-main58.29ms - 59.47msunsure 🔍
-2% - +1%
-1.31ms - +0.49ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.02ms - 3.04ms-unsure 🔍
-1% - +1%
-0.02ms - +0.02ms
preact-main3.02ms - 3.05msunsure 🔍
-1% - +1%
-0.02ms - +0.02ms
-

run-warmup-0

VersionAvg timevs preact-localvs preact-main
preact-local27.18ms - 27.99ms-unsure 🔍
-1% - +3%
-0.22ms - +0.90ms
preact-main26.87ms - 27.62msunsure 🔍
-3% - +1%
-0.90ms - +0.22ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local32.42ms - 33.76ms-unsure 🔍
-3% - +3%
-0.99ms - +0.92ms
preact-main32.44ms - 33.81msunsure 🔍
-3% - +3%
-0.92ms - +0.99ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local33.71ms - 35.04ms-unsure 🔍
-2% - +3%
-0.83ms - +0.96ms
preact-main33.71ms - 34.91msunsure 🔍
-3% - +2%
-0.96ms - +0.83ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local26.51ms - 27.46ms-unsure 🔍
-3% - +1%
-0.82ms - +0.40ms
preact-main26.82ms - 27.58msunsure 🔍
-1% - +3%
-0.40ms - +0.82ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local24.73ms - 26.01ms-unsure 🔍
-3% - +4%
-0.71ms - +1.00ms
preact-main24.65ms - 25.79msunsure 🔍
-4% - +3%
-1.00ms - +0.71ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local22.25ms - 23.06ms-unsure 🔍
-1% - +4%
-0.23ms - +0.85ms
preact-main21.99ms - 22.70msunsure 🔍
-4% - +1%
-0.85ms - +0.23ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 230
  • Built by: CI #5363
  • Commit: 20f8445

duration

VersionAvg timevs preact-localvs preact-main
preact-local1.96ms - 2.12ms-unsure 🔍
-4% - +6%
-0.08ms - +0.13ms
preact-main1.96ms - 2.07msunsure 🔍
-6% - +4%
-0.13ms - +0.08ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local33.35ms - 33.68ms-unsure 🔍
-3% - +1%
-1.07ms - +0.27ms
preact-main33.26ms - 34.57msunsure 🔍
-1% - +3%
-0.27ms - +1.07ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.30ms - 1.35ms-unsure 🔍
-2% - +4%
-0.02ms - +0.05ms
preact-main1.28ms - 1.33msunsure 🔍
-4% - +1%
-0.05ms - +0.02ms
-
update10th1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local31.80ms - 33.51ms-unsure 🔍
-4% - +3%
-1.45ms - +1.06ms
preact-main31.93ms - 33.76msunsure 🔍
-3% - +4%
-1.06ms - +1.45ms
-

usedJSHeapSize

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

tachometer-reporter-action v2 for CI

@github-actions
Copy link

github-actions bot commented Feb 12, 2026

Size Change: -40 B (-0.05%)

Total Size: 79 kB

Filename Size Change
hooks/dist/hooks.js 1.53 kB -9 B (-0.59%)
hooks/dist/hooks.mjs 1.56 kB -10 B (-0.64%)
hooks/dist/hooks.module.js 1.56 kB -10 B (-0.64%)
hooks/dist/hooks.umd.js 1.6 kB -11 B (-0.68%)
ℹ️ View Unchanged
Filename Size
compat/dist/compat.js 4.18 kB
compat/dist/compat.mjs 4.11 kB
compat/dist/compat.module.js 4.11 kB
compat/dist/compat.umd.js 4.25 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
dist/preact.js 4.76 kB
dist/preact.min.js 4.78 kB
dist/preact.min.module.js 4.78 kB
dist/preact.min.umd.js 4.8 kB
dist/preact.mjs 4.77 kB
dist/preact.module.js 4.77 kB
dist/preact.umd.js 4.8 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 Make forEach --> some Hooks size optimizations Feb 12, 2026
@JoviDeCroock JoviDeCroock force-pushed the hooks-size-optimizaitons branch from 162fe3f to 20f8445 Compare February 13, 2026 09:35
@JoviDeCroock JoviDeCroock merged commit e02fd69 into v10.x Feb 15, 2026
12 checks passed
@JoviDeCroock JoviDeCroock deleted the hooks-size-optimizaitons branch February 15, 2026 07:21
@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