~/talk

When, why, and how to multithread in Flutter

Talkat Google I/O 2022 · 2022-05-11..05-12· [flutter, concurrency]
links:none on file
slides:none on file

A demonstration shows that synchronous file and CPU work can steal frames: readAsBytesSync blocks event loop and a direct image filter freezes the UI so the progress indicator never appears. Awaiting an async delay helps only briefly because heavy work still runs on the main isolate. The concrete fixes are: use async I/O and for short tasks call compute spawns short-lived isolate, and for persistent work spawn an isolate and communicate with receive/send ports for long-lived isolates to keep 60fps rendering.

AI-written summary · about

  1. 0:00Start
  2. 1:20Synchronous versus Asynchronous Function Calls
  3. 2:50Event Handler
  4. 5:41Image Processing
  5. 7:04Delayed Api
  6. 13:37Summary
~/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.