~/talk

The Edge of Performance: Pushing Node.js to Its Limits

Talkat NodeTLV 2025 · on Tuesday, 2025-12-16· [nodejs, web-performance]
links:none on file
slides:none on file

Shows concrete limits and fixes: moving heavy loops to worker threads removes main-thread blocking (timeouts and simple GETs stay responsive) and a small worker pool prevents CPU thrashing; experiments run a 4‑billion‑item simulation and a case with five 120M arrays that push memory to ~9GB and trigger GC pause 236ms. Replacing plain arrays with Uint8Array cuts allocation time from ~30s to 0.5s and heap from ~8–9GB to a few MB, effectively eliminating long pauses; recommends using libraries like piscina or workerpool for production.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17Node.js for heavy computation
  3. 3:48Evolution of Node.js
  4. 6:45Node.js limitations for CPU tasks
  5. 8:58Blocking event loop demo
  6. 10:24Worker threads solution
  7. 13:19Worker threads in practice
  8. 14:02Thread pool management
  9. 15:54Avoid blocking main thread
  10. 16:37Case study: real-time updates
  11. 19:50Memory management crisis
  12. 20:35Garbage collector deep dive
  13. 23:56GC impact on performance
  14. 24:38Memory optimization demo
  15. 27:09GC cycle delays
  16. 29:19Forced GC analysis
  17. 30:00Type arrays for efficiency
  18. 32:10Summary and takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.