~/talk

Tree-Shaking Native Code and Assets with Link Hooks

Talkat next.app devCon 2026 · 2026-10-07..10-09· [flutter, web-performance]
slides:none on file

Demonstrates shrinking a Flutter app to only bytes actually used by combining the @RecordUse annotation with build hooks and new link hooks plus the data assets experiment. A live demo (Idle Pirate) shows removing unused sounds and images, resizing icons, and cross‑package translation pruning, dropping an example app from ~40 MB to ~17 MB and slimming a native audio library from 652 KB to 428 KB. The mechanism runs at AOT/link time and the demo successfully produces smaller bundles.

AI-written summary · about

  1. 0:00Introduction to tree shaking
  2. 1:23What is tree shaking?
  3. 2:28Icon tree shaking in Flutter
  4. 4:14Generalizing tree shaking
  5. 6:40Introducing link hooks
  6. 7:22Demo setup: Idle Pirate game
  7. 9:29Tree shaking sounds
  8. 14:29Tree shaking images
  9. 17:38Resizing and filtering images
  10. 19:44Tree shaking translations
  11. 23:19Cross-package tree shaking
  12. 26:31User-defined configuration
  13. 28:18Tree shaking native libraries
  14. 31:32Summary and Q&A
~/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.