~/talk

JavaScript Blazingly FAST! Lessons from a Game Engine

Talkat NDC Oslo 2025 · 2025-05-19..05-23· [javascript, web-performance]
links:none on file
slides:none on file

Open-source Excalibur.js proves web games can hit low-latency targets: recursive fib(40) falls from ~2.5s to near-instant with memoization, C-style loops beat functional forms (58ms → single-digit over 5M items), and cache-coherent memory access yields ~7x speedups. Tooling is Chrome/Firefox DevTools, heap snapshots and node inspect; multi-threading uses web workers and postMessage with transferables (8MB ArrayBuffer becomes 0 in main thread after transfer). Memory fixes use scratch variables and pools/arenas; consider Excalibur.js techniques, WebAssembly for stable heavy math, and benchmark on a stable machine.

AI-written summary · about

  1. 0:00JavaScript performance challenges
  2. 1:14Why JavaScript can be fast
  3. 3:01Cost of slow JavaScript
  4. 4:05Optimization principles and trade-offs
  5. 6:33JavaScript engine optimizations
  6. 9:24Profiling with DevTools
  7. 11:10Visual tricks for performance
  8. 11:31Data structures and caching
  9. 13:23Multi-threading with Web Workers
  10. 16:33Transferable objects
  11. 18:43SharedArrayBuffer security
  12. 19:47Optimizing loops
  13. 23:39Data-oriented programming
  14. 25:49Collision detection structures
  15. 26:33Co-routines for computation
  16. 27:58WebAssembly benefits
  17. 31:51GPU acceleration with WebGPU
  18. 33:38Memory management in JS
  19. 35:24Common memory leaks
  20. 38:13Heap snapshots debugging
  21. 40:23Closures and memory leaks
  22. 41:47Framework memory leaks
  23. 42:52Memory thrashing impact
  24. 44:38Object pooling
  25. 46:43JIT compiler optimizations
  26. 49:34Hidden classes in V8
  27. 51:24Preventing JIT deoptimization
  28. 52:49Benchmarking and regression
  29. 54:15Final thoughts and resources
~/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.