~/talk

Leveraging the Event Loop for Blazing-Fast Apps!

Talkat JavaScript fwdays’23 · 2023-05-16..05-20· [javascript, web-performance]
links:none on file
slides:none on file

Claims that the Microtask Queue can yield huge speedups and demonstrates it by building a super simple signal (class-based DOM binder), benchmarking millions of updates and switching rendering from immediate to queued. Uses setTimeout(0) versus window.queueMicrotask / Promise.resolve to show the microtask path cuts a 3.8s loop to about 61ms — roughly a 50x improvement. Explains run-to-completion, why timeouts aren’t guaranteed, and when microtasks can instead create their own blocking loop.

AI-written summary · about

  1. 0:00Welcome
  2. 1:49JavaScript event loop
  3. 3:55JavaScript runtimes
  4. 7:26Event loop and non-blocking I/O
  5. 10:13Run to completion and concurrency
  6. 12:40Timeouts and timestamp checks
  7. 13:43Blocking vs non-blocking demo
  8. 17:17Demo scaffolding
  9. 23:37Benchmarking signals
  10. 26:45Optimizing with microtasks
  11. 29:15Performance results
  12. 31:05When to use microtasks
  13. 34:18Summary
  14. 35:43Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.