Heavy lift work in Flutter get started with Isolates – Pascal Welsch

preview_player
Показать описание
Video recorded at DevFest Ukraine 2018. The conference that brings together people who shape the future of Android, Web and Cloud technologies for 2 days of sessions, workshops, and networking.

--

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 a new thread 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 the compute-heavy task via Isolates.

--

Рекомендации по теме
Комментарии
Автор

I agree with Daniel Vilela. Good and interesting talk, but I got really distracted when he talked about code which is first shown and suddenly they cut to some guy holding his tablet

julianhorst
Автор

Nice talk! I just disliked the camera guy breaking my attention with useless stuff (filming the audience everytime for example)

danvilela
Автор

Can you please provide explained example?

alpeshrathod
Автор

Very nice talk, but the camera makes no sense. In this kind of talks I want to see the code (screen) and maybe the guy talking in a second smaller view. That's all, no need to zoom in and out or anything else.

DavidAnaya
Автор

camera distracting.
nice efforts overall, keep it up. thanks

Fnyvids
Автор

Thanks for no IntroDuction. Add High Quality Images, NIce Talk BTW>

cs
Автор

I like Flutter, but these isolates are an aweful solution for heavy tasks for me in comparison with Android solutions like AsyncTask! spawning takes up to 150 ms, and data are copied! also memory is not shared which makes things a lot more complicated for development!

homamis