[Pascal Welsch] Heavy lift work in Flutter - get started with Isolates

[Pascal Welsch] Heavy lift work in Flutter - get started with Isolates

Presentation from GDG DevFest Ukraine 2018 - the biggest community-driven Google tech conference in the CEE.

Learn more at: https://devfest.gdg.org.ua

__

Moving work off the main thread prevents frame drops and makes users happy. Starting with Android P, apps will crash if they are not responding forcing developers to address this problem even more. Working with threads and async computations is every mobile developer daily challenge.

Flutter uses Dart, which is single threaded and has no APIs to start new threads like in Java or Swift. How does this fit in a world of phones with at least 4 CPUs?

This talk will explain the Flutter threading model, how Futures keep the app responsive on a single thread and how you can use all CPU cores for compute-heavy task via Isolates.

Pascal will demonstrate practical examples how to heavy lift tasks like:
- parsing of big json files
- deconding images
- sorting long lists

3a6de6bc902de7f75c0e753b3202ed52?s=128

Google Developers Group Lviv

October 12, 2018
Tweet