~/talk

The Memory Leak Brain Drain – Workshop

Talkat ng-conf 2017 · 2017-04-05..04-07· [frontend-architecture]
name:Jon Boyd
links:none on file
slides:none on file

A practical walkthrough of chasing browser leaks: reproduces a contrived counter that creates an array of 10,000 items and a polling observable that never unsubscribes, shows memory climbing in Chrome DevTools timeline, isolates retaining objects with the allocation timeline and heap snapshots, explains minor vs major GC: 1–25ms vs 30ms+ and why detached DOM trees long-lived subscriptions and console logging hold references, then fixes it by unsubscribing and adding an explicit stopPulling call so the retained nodes and heap growth disappear.

AI-written summary · about

  1. 0:00Start
  2. 0:38Large scale memory leaks
  3. 2:32What is a memory leak?
  4. 9:35Garbage Collection Takeaways
  5. 9:51Types of Memory Management
  6. 10:18Manual Memory Management
  7. 10:50Reference Counting
  8. 11:43Javascript Engines
  9. 12:44A user using your app
  10. 13:52Minor GC happens again
  11. 14:34Minor Garbage Collections
  12. 16:32Single Threaded Browser
  13. 17:01Observational signs of a memory leak
  14. 19:43Detached DOM Trees
  15. 20:33Long lived observables
  16. 21:18Console API
  17. 35:09Conclusion
~/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.