You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Performance audit embedding Flutter view initialization time #32945
Here is a recent sample from app startup time (tested against PR 36482) little.json.gz
(Sample taken in iPhone SE)
~80ms is spent in FontCollection::FindFontFamilyInManagers. That seems to be the place currently with a lot of opportunity outside of Skia. We should use a more complete profiler to introspect into Skia as well.
This is all in profile mode right? 300ms of pure dart code for one frame does seem a bit intense. Though given a prewarm'ed engine (on which we called runWithEntrypoint ahead of time), this cost is hidden right?
This is all in profile mode right? 300ms of pure dart code for one frame does seem a bit intense. Though given a prewarm'ed engine (on which we called runWithEntrypoint ahead of time), this cost is hidden right?
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
gaaclarke commentedon Jul 19, 2019
We've done a few things that make this better:
Here is a recent sample from app startup time (tested against PR 36482)

little.json.gz
(Sample taken in iPhone SE)
~80ms is spent in FontCollection::FindFontFamilyInManagers. That seems to be the place currently with a lot of opportunity outside of Skia. We should use a more complete profiler to introspect into Skia as well.
xster commentedon Jul 19, 2019
This is all in profile mode right? 300ms of pure dart code for one frame does seem a bit intense. Though given a prewarm'ed engine (on which we called runWithEntrypoint ahead of time), this cost is hidden right?
gaaclarke commentedon Jul 19, 2019
An instruments profile confirms there is a lot of work being done with fonts:

flutterstartup.trace.zip
gaaclarke commentedon Jul 19, 2019
Yep, both samples are in profile mode.
xster commentedon Jul 19, 2019
Also cc @GaryQian @jason-simmons for any potential optimizations on the font manager (potentially doing things before the first Dart frame)
jonahwilliams commentedon Aug 30, 2024
Seems like we did do the audit. Hopefully any follow up tasks were filled and or completed
github-actions commentedon Sep 13, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.