~/talk

JavaScript: The V8 Engine optimization tips (...)

Talkat 4Developers 2020 · 2020-09-14..09-18· [javascript, web-performance]
links:none on file
slides:none on file

Explains how V8 turns JS into bytecode (Ignition) and optimized machine code (Turbofan), and shows concrete effects: hidden classes make identical-shaped objects 7× faster in creation (examples: per-object times drop from ~70µs to ~5–6µs; mixed ~10µs; dynamic ~42µs), creating 10,000 objects takes ~38ms (static) vs 101ms (mixed) vs 428ms (dynamic). Covers inline caching and monomorphic/polymorphic/megamorphic behavior, that for in is 6x faster than Object.keys in V8, and that try/catch no longer blocks optimization since v8 5.8.

AI-written summary · about

  1. 0:00Introduction
  2. 1:14How JavaScript engines work
  3. 3:42What is V8 engine
  4. 5:51Hidden classes optimization
  5. 16:31Inline optimization
  6. 20:01Inline caching explained
  7. 24:33For-in loop performance
  8. 28:44Try-catch performance myths
  9. 30:49Recap 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.