~/talk

Using Dart FFI for Compute-Heavy Tasks in Flutter Apps

Talkat Fluttercon India 2025 · on Sunday, 2025-12-14· [flutter]
links:none on file
slides:none on file

Uses Dart FFI to offload heavy image work to C, shows concrete codegen and build hooks via FFI gen and the new native toolchain, and demonstrates passing data with native malloc and sharing memory across isolates. Benchmarks: premultiplication and flood‑fill move from Dart to C and gain up to 95% time reduction with SIMD plus threading, yielding overall ~20× speedup on iOS and ~13× on Android. Notes pitfalls: native finalizer timing, manual free, and transferable typedata overhead.

AI-written summary · about

  1. 0:00Dart FFI introduction
  2. 1:50Why choose Dart FFI
  3. 7:59FFI advantages and trade-offs
  4. 9:04Setting up FFI in Flutter
  5. 15:34FFI package structure
  6. 16:59FFI examples and annotations
  7. 24:51FFI plugins vs packages
  8. 27:47Real-world FFI performance
  9. 36:48Q&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.