~/talk

Enhancing Memory Performance in Android TV Applications

Talkat React Native Connection 2024 · on Tuesday, 2024-04-23· [react-native]
links:none on file
slides:none on file

A streaming Android TV app used by millions must stay under 200MB RAM limit and initially climbs to ~360–400MB and crashes; reproduction uses an ADB automation script that launches a program and plays video 100 times. LeakCanary identifies a leak in Android’s media/Exo layer so the feature is removed until Google ships a fix, which restores memory. A later problem shows small JS heap but ~150MB native allocations because Hermes doesn’t account native memory; upstream fixes (WeakMap leak and Hermes native memory accounting landed in RN 0.74) and a short‑term periodic JS GC bring the app under limit in production.

AI-written summary · about

  1. 0:00Introduction to memory challenges
  2. 1:21Why React Native for TV apps
  3. 3:10Reproducing memory spikes
  4. 7:09Understanding memory leaks
  5. 8:16Using LeakCanary tool
  6. 10:05Debugging external dependencies
  7. 11:31Second memory spike investigation
  8. 13:17Garbage collector behavior
  9. 15:28React Native memory architecture
  10. 18:20Fixing React Native memory issues
  11. 19:25Debugging memory strategies
  12. 20:27Conclusion and key takeaways
  13. 21:09Q&A on TV development challenges
  14. 22:34Audience questions on memory tools
  15. 24:00Open source maintenance appreciation
  16. 25:03Long-term prevention strategies
  17. 26:07Consistent memory measurement
  18. 26:53Handling unfixed bugs
  19. 27:34React Native overhead on TV
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.