~/talk

A sneak peek into super optimized code in JS frameworks

Talkat JSConf EU 2019 · 2019-06-01..06-02· [javascript, web-performance]
slides:none on file

Reverse-engineering of Angular and React shows concrete micro-optimizations: enforced monomorphic property access via shared hidden classes yields up to ~100x faster property reads in hot paths, frameworks collapse node types into single structs and use tag fields, React encodes side effects as bitfields to avoid object allocation, and Angular uses bloom filters per injector to make DI lookups mostly one CPU instruction. Code snippets, debugger traces and measured counts back each claim.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Overview
  3. 1:48Monomorphic
  4. 2:34Data Structures
  5. 3:08View Notes
  6. 4:16Update Node
  7. 5:17Virtual Machines
  8. 5:52Hidden classes
  9. 6:18Shape object
  10. 7:14Transition chains
  11. 9:18Cache
  12. 12:30JS Templates
  13. 12:52React Framework
  14. 13:14Bit fields
  15. 13:45Side effects
  16. 14:24Update task
  17. 15:24Update host
  18. 15:52Bitfills
  19. 16:58Bloom Filters
  20. 17:43Probability
  21. 19:24Collisions
  22. 22:11Articles
~/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.