New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use queueMicrotask for scheduling #2354
base: main
Are you sure you want to change the base?
Conversation
Size Change: +1.42 kB (3%) Total Size: 41.9 kB
ℹ️ View Unchanged
|
This seems to have low browser compat though https://caniuse.com/#search=queueMicrotask (11% diff to Promise) |
Good point. The data seems to be incorrect about edge though. The latest version does haver |
Would love to get performance numbers for this change. The size decrease is awesome, but we'll want to be confident about the perf of this (and of setTimeout fallback in Edge <= 18) to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been thinking about this and if setTimeout
isn't a serious thing (which it shouldn't) I'm up for this.
We're hesitant to make the switch right now as that would push a lot of browsers over to |
📊 Tachometer Benchmark ResultsSummaryduration
usedJSHeapSize
Results02_replace1k
duration
usedJSHeapSize
run-warmup-0
run-warmup-1
run-warmup-2
run-warmup-3
run-warmup-4
run-final
03_update10th1k_x16
duration
usedJSHeapSize
07_create10k
duration
usedJSHeapSize
filter_list
duration
usedJSHeapSize
hydrate1k
duration
usedJSHeapSize
many_updates
duration
usedJSHeapSize
text_update
duration
usedJSHeapSize
|
By suggestion from @ mathiasbynens https://mobile.twitter.com/mathias/status/1229142133904478209 🎉
Size
-11 B
🙌