~/talk

Demystifying V8 and JavaScript Performance

Talkat NodeConf EU 2014 · 2014-09-08..09-10· [nodejs, javascript]
slides:none on file

Benchmarks mask causes; probing V8 with flame graphs and reading engine code finds a garbage-collector stall that explains a slow Float32Array constructor. V8 represents values as 31‑bit Smis or boxed pointers, stores object layouts in maps/hidden classes with transitions, and uses fixed 32‑slot defaults then shrinks after ~8 instances. Typed arrays use unboxed linear backing, mixed or sparse arrays force dictionary mode, and the optimizing compiler triggers optimization hell on deopts or polymorphism. Initialize properties in order to avoid deoptimization.

AI-written summary · about

  1. 0:00Introduction
  2. 2:30Data Types
  3. 7:20Map
  4. 10:38Extra Properties
  5. 13:46Erase
  6. 14:48Linear Buffer
  7. 18:19Compilers
  8. 20:43Optimization
  9. 23:39Conclusion
~/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.