~/talk

Using Dart FFI for Compute-Heavy Tasks

Talkat Fluttercon Europe 2025 · 2025-09-24..09-26· [flutter]
links:none on file
slides:none on file

Dart FFI calls C code to speed compute-heavy image routines, using native heap shared memory to avoid costly copies and FFI gen + plugin templates to integrate builds; transferable_type_data and isolate ports prove too slow. Benchmarks on a pixel‑art editor show C alone is ~5x faster in microbenchmarks but real gains: premultiplied alpha reaches SIMD + threading speedups up to 20× on iOS and 13× on Android. Native finalizers handle cleanup; implementations compile and run in Flutter.

AI-written summary · about

  1. 0:00Dart FFI introduction
  2. 1:07What is Dart FFI
  3. 3:18Dart isolates limitations
  4. 7:13FFI trade-offs
  5. 9:48Performance gains from C
  6. 10:51FFI packages setup
  7. 16:13Manual FFI example
  8. 19:48Native finalizers
  9. 22:17Modern FFI annotations
  10. 25:37Flutter FFI plugin
  11. 28:49Performance benchmarks
  12. 36:39Q&A
~/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.