~/talk

Lazy Flutter performance

Talkat Google I/O 2021 · 2021-05-18..05-20· [flutter, web-performance]
slides:none on file

Shows concrete results: naive single-child lists blow memory up (10 → ~15MB, 100 → ~80MB, 1,000 crashes) while ListView.builder keeps memory flat and scrolling smooth; demonstrates a 2D fix using InteractiveViewer.builder with visible-cell checks and measurable ~3x memory reduction vs naive; profiles with DevTools and uses a heavy Rive Marty asset to force stalls; builds a procedurally generated map that swaps a 3x3 tile ring and performs multi-scale simplification so zooming and endless panning remain responsive.

AI-written summary · about

  1. 0:00Start
  2. 2:23Procedural Generation
  3. 4:15Profiling the Memory Impact
  4. 5:05Item Builder
  5. 6:45Naive Approach and the Single Child Scroll View
  6. 7:06Listview Builder
  7. 7:31Memory Snapshot
  8. 8:04Interactive Viewer
  9. 9:422d Example
  10. 10:21Interactiveviewer Builder
  11. 13:02Procedural Generation Example
  12. 13:31Performance Optimizations
  13. 14:02Not Load any Assets That Are Not on the Screen
  14. 17:57Documentation
~/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.