Skip to content

Golf down compat#5025

Merged
JoviDeCroock merged 4 commits intov10.xfrom
flush-sync-doing-smth
Feb 24, 2026
Merged

Golf down compat#5025
JoviDeCroock merged 4 commits intov10.xfrom
flush-sync-doing-smth

Conversation

@JoviDeCroock
Copy link
Member

@JoviDeCroock JoviDeCroock commented Feb 18, 2026

No description provided.

@github-actions
Copy link

github-actions bot commented Feb 18, 2026

📊 Tachometer Benchmark Results

Summary

duration

  • create10k: unsure 🔍 -0% - +0% (-3.74ms - +3.10ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -0% - +0% (-0.01ms - +0.05ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -0% - +2% (-0.25ms - +1.26ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -1% - +1% (-0.21ms - +0.18ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -1% - +2% (-0.51ms - +1.28ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -4% - +2% (-0.08ms - +0.04ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -1% - +1% (-0.43ms - +0.51ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -5% - +2% (-1.50ms - +0.68ms)
    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 🔍 -4% - +8% (-0.25ms - +0.53ms)
    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 🔍 -1% - +7% (-0.01ms - +0.08ms)
    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-local871.51ms - 875.78ms-unsure 🔍
-0% - +0%
-3.74ms - +3.10ms
preact-main871.29ms - 876.64msunsure 🔍
-0% - +0%
-3.10ms - +3.74ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.52ms - 16.56ms-unsure 🔍
-0% - +0%
-0.01ms - +0.05ms
preact-main16.50ms - 16.55msunsure 🔍
-0% - +0%
-0.05ms - +0.01ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.55ms - 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-local58.89ms - 60.08ms-unsure 🔍
-0% - +2%
-0.25ms - +1.26ms
preact-main58.51ms - 59.44msunsure 🔍
-2% - +0%
-1.26ms - +0.25ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local6.15ms - 6.71ms-unsure 🔍
-4% - +8%
-0.25ms - +0.53ms
preact-main6.02ms - 6.56msunsure 🔍
-8% - +4%
-0.53ms - +0.25ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.50ms - 16.55ms-unsure 🔍
-1% - +1%
-0.21ms - +0.18ms
preact-main16.34ms - 16.74msunsure 🔍
-1% - +1%
-0.18ms - +0.21ms
-

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 #5406
  • Commit: ddb5877

duration

VersionAvg timevs preact-localvs preact-main
preact-local59.80ms - 61.22ms-unsure 🔍
-1% - +2%
-0.51ms - +1.28ms
preact-main59.58ms - 60.68msunsure 🔍
-2% - +1%
-1.28ms - +0.51ms
-

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.23ms - 27.16ms-unsure 🔍
-2% - +3%
-0.46ms - +0.69ms
preact-main26.24ms - 26.92msunsure 🔍
-3% - +2%
-0.69ms - +0.46ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local32.78ms - 34.12ms-unsure 🔍
-3% - +3%
-1.02ms - +0.86ms
preact-main32.87ms - 34.19msunsure 🔍
-3% - +3%
-0.86ms - +1.02ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local33.35ms - 34.56ms-unsure 🔍
-2% - +3%
-0.68ms - +1.01ms
preact-main33.20ms - 34.38msunsure 🔍
-3% - +2%
-1.01ms - +0.68ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local26.79ms - 27.23ms-unsure 🔍
-1% - +1%
-0.18ms - +0.40ms
preact-main26.71ms - 27.09msunsure 🔍
-1% - +1%
-0.40ms - +0.18ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local24.60ms - 26.01ms-unsure 🔍
-3% - +5%
-0.79ms - +1.17ms
preact-main24.43ms - 25.80msunsure 🔍
-5% - +3%
-1.17ms - +0.79ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local22.45ms - 23.04ms-unsure 🔍
-1% - +2%
-0.31ms - +0.44ms
preact-main22.44ms - 22.91msunsure 🔍
-2% - +1%
-0.44ms - +0.31ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 240
  • Built by: CI #5406
  • Commit: ddb5877

duration

VersionAvg timevs preact-localvs preact-main
preact-local1.77ms - 1.85ms-unsure 🔍
-4% - +2%
-0.08ms - +0.04ms
preact-main1.78ms - 1.87msunsure 🔍
-2% - +4%
-0.04ms - +0.08ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.03ms - 1.10ms-unsure 🔍
-1% - +7%
-0.01ms - +0.08ms
preact-main1.01ms - 1.06msunsure 🔍
-7% - +1%
-0.08ms - +0.01ms
-
todo

duration

VersionAvg timevs preact-localvs preact-main
preact-local33.72ms - 34.51ms-unsure 🔍
-1% - +1%
-0.43ms - +0.51ms
preact-main33.81ms - 34.34msunsure 🔍
-1% - +1%
-0.51ms - +0.43ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local30.03ms - 31.42ms-unsure 🔍
-5% - +2%
-1.50ms - +0.68ms
preact-main30.30ms - 31.97msunsure 🔍
-2% - +5%
-0.68ms - +1.50ms
-

usedJSHeapSize

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

tachometer-reporter-action v2 for CI

@github-actions
Copy link

github-actions bot commented Feb 18, 2026

Size Change: -146 B (-0.19%)

Total Size: 78.6 kB

Filename Size Change
compat/dist/compat.js 4.15 kB -35 B (-0.84%)
compat/dist/compat.mjs 4.07 kB -38 B (-0.92%)
compat/dist/compat.module.js 4.07 kB -38 B (-0.92%)
compat/dist/compat.umd.js 4.21 kB -35 B (-0.82%)
ℹ️ 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.72 kB
dist/preact.min.js 4.73 kB
dist/preact.min.module.js 4.74 kB
dist/preact.min.umd.js 4.75 kB
dist/preact.mjs 4.73 kB
dist/preact.module.js 4.73 kB
dist/preact.umd.js 4.76 kB
hooks/dist/hooks.js 1.52 kB
hooks/dist/hooks.mjs 1.56 kB
hooks/dist/hooks.module.js 1.56 kB
hooks/dist/hooks.umd.js 1.59 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

@rschristian
Copy link
Member

Need to take a better look after work, but might also address #3929

@JoviDeCroock
Copy link
Member Author

A different implementation might be to do

let flush;
options.debounceRendering = (fn) => {
  flush = fn;
  queueMicroTask(fn);
}

export function flushSync(cb) {
  let res = cb();
  flush();
  return res;
}

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.

I don't mean to be picky but this PR seems to have a considerable amount of miscellaneous golfing, it might even make up the bulk of the changes. If it's not too much of a hassle, I'd generally prefer that to be extracted out & separate.

As-is, it's bundle fairly different things and muddying up the diff.

@JoviDeCroock
Copy link
Member Author

I tried doing our old habit again of compensating for the bytes we added but I'll separate it out.

@JoviDeCroock JoviDeCroock changed the title Make flushSync functional Golf down compat Feb 24, 2026
@JoviDeCroock JoviDeCroock merged commit af4c459 into v10.x Feb 24, 2026
12 checks passed
@JoviDeCroock JoviDeCroock deleted the flush-sync-doing-smth branch February 24, 2026 17:57
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