~/talk

The Secrets of React's Virtual DOM

Talkat FutureJS 2014 · 2014-05-06..05-21· [react, web-platform]
name:Pete Hunt
github:petehunt
slides:none on file

Claims that a virtual DOM (React) treats render code as a black box and diffs virtual tree snapshots then patches the real DOM, trading a bit of worst‑case warm‑update cost for far lower memory and far simpler architecture. Demonstrations compare key‑value observation and dirty‑checking to the virtual DOM, show similar timing at 25 items, much better behavior at 10,000 items, and a memoization hook that restores sub‑frame updates. The system ships at Facebook/Instagram and works in production.

AI-written summary · about

  1. 0:00Intro
  2. 0:40Welcome
  3. 1:43User Interfaces
  4. 3:51Organizing Complexity
  5. 4:33User Interface Reliability
  6. 6:23Reactive Programming
  7. 6:56Simplicity
  8. 14:30DirtyChecking
  9. 16:49Example
  10. 18:08Virtual DOM
  11. 20:01Practical Expressivity
  12. 20:29Traditional Data Binding Systems
  13. 21:05Virtual DOM Leaks
  14. 22:03Static Analysis
  15. 23:13KeyValue Observation
  16. 23:36Render Code
  17. 23:47View Size
  18. 24:06Performance Numbers
  19. 24:32Virtual DOM vs Angular
  20. 25:39Big O Notation
  21. 26:33Memory Usage
  22. 27:20Node Generation
  23. 28:32Data Binding
  24. 29:29Jetlagged
  25. 30:17The Secret
  26. 30:43Simple Architectures
  27. 30:55DomainSpecific Languages
  28. 31:23Orders of Magnitude
  29. 32:06Performance is not the goal
  30. 32:16In the worst case
  31. 32:27Conclusion
  32. 32:44Question
~/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.