~/talk

A sneak peek into super optimized code in JS frameworks

Talkat JS Fest 2019 Spring · on Thursday, 2019-04-04· [javascript, frontend-architecture]
links:none on file
slides:none on file

Reverse-engineering Angular and React surfaces concrete optimizations: framework node objects share a single hidden class so property reads stay monomorphic, saving work when code hits 10,000 property accesses per change-detection cycle; V8 treats >4 shapes as megamorphic and monomorphic access can be up to 100x faster. React packs side-effects into bitmasks for tiny checks; Angular uses a 256-bit bloom filter per injector to short-circuit lookups — real, implemented tricks that measurably reduce allocations and runtime.

AI-written summary · about

  1. 0:00Max Koretskyi aka The Wizard
  2. 3:40Angular sources comments
  3. 6:01Representing a template in Angular
  4. 7:36Representing a template in React
  5. 8:26Fiber and View nodes are used a lot when processing changes
  6. 20:47Polymorphic property access
  7. 24:13Template node types
  8. 28:05Effects in React Fiber architecture
  9. 33:22Encoding objects in bit fields
  10. 39:22Bloom filters
~/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.