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