~/talk

A Beginner's Guide to High-Performance Integration

Talkat Fluttercon Europe 2024 · 2024-07-03..07-05· [embedded-and-hardware]
links:none on file
slides:none on file

Benchmarks an N-body particle simulation where native code computes positions and Dart paints with CustomPainter; native libraries are produced with CMake/cargo and bindings generated by ffigen. Pure Dart version runs ~20 FPS; switching to Rust pushes it above 60 FPS; C/C++ shows up to ~70–80 FPS on one compiler but drops to ~13 on a different chip depending on flags. Switching Dart data structures to Float64List typed data gives ~+40 FPS, and Rust libraries on macOS/iOS require manual linking into the Xcode workspace.

AI-written summary · about

  1. 0:00FFI introduction
  2. 3:12Setting up the performance benchmark demo
  3. 7:51Dart with C via FFI
  4. 9:15Rust FFI integration
  5. 12:07Platform FFI challenges
  6. 13:37Particle simulation demo
  7. 15:46Language performance comparison
  8. 17:56Optimizing Dart with typed data
  9. 21:00Dart boxing behavior
  10. 23:10Summary and Q&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.