How to optimize the startup time performance of Flutter?

54 views
Skip to first unread message

Max

unread,
Oct 17, 2018, 5:32:40 AM10/17/18
to Flutter Dev
Hi, all,

We really love the beautiful Flutter framework, which improves our development efficiency greatly. Since there are ten millionofusers use our Application everyday,performance is very important for us, including startup time, memory increment (will cause OOM) and App Size increment.

We create a minimum Flutter App to test the startup performance in Release(AOT) mode, and here are results:

(1) iPhone 6: test 22 times
Create FlutterViewController: 327.97 millisecond

(2) iPhone X: test 22 times
Create FlutterViewController: 81.60 millisecond

It seems the startup performance is poor at old iPhone devices, and it is not fast enough at iPhoneX devices too.

Questions: Is there any solution to optimize the startup time of Flutter engine? for example:

(1) remove or some unnecessary init steps
(2) lazy load some init steps
(3) split the Flutter startup into two phases, the engine bootup in the background thread, and the Shell creation in the main thread?

Thanks a lot.

Eric Seidel

unread,
Oct 23, 2018, 6:24:05 PM10/23/18
to Max, cbra...@google.com, Flutter Dev
Would you be willing to file a bug with your specific targets in mind?


This is an area we're actively working on.  FYI +Chris Bracken 

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages