关于资产影响性能的问题
Question about assets affecting performance
希望你玩得开心。我目前正在开发一个包含大量图像的应用程序,因此我们很自然地将它们添加到 /assets
文件夹中。我的问题是。拥有大量资产图像(大约 140 张图像)确实会影响 flutter 运行-time 性能。感谢您的回答。
基于 Flutter 文档中有关性能的 this part:
Flutter’s engine runtime and your application’s compiled Dart code are
both bundled as shared libraries on Android and iOS. The first step of
loading Flutter is to find those resources in your .apk/.ipa/.app
(along with other Flutter assets such as images, fonts, and JIT code
if applicable).
This happens when you construct a FlutterEngine for the first time on
both Android and iOS APIs.
因此它会对启动应用程序产生一些(可能很小的)影响,但资源量较少的捆绑包与资源较多的捆绑包之间的确切时间只能通过使用 DevTools
或像这样的插件。
希望你玩得开心。我目前正在开发一个包含大量图像的应用程序,因此我们很自然地将它们添加到 /assets
文件夹中。我的问题是。拥有大量资产图像(大约 140 张图像)确实会影响 flutter 运行-time 性能。感谢您的回答。
基于 Flutter 文档中有关性能的 this part:
Flutter’s engine runtime and your application’s compiled Dart code are both bundled as shared libraries on Android and iOS. The first step of loading Flutter is to find those resources in your .apk/.ipa/.app (along with other Flutter assets such as images, fonts, and JIT code if applicable).
This happens when you construct a FlutterEngine for the first time on both Android and iOS APIs.
因此它会对启动应用程序产生一些(可能很小的)影响,但资源量较少的捆绑包与资源较多的捆绑包之间的确切时间只能通过使用 DevTools
或像这样的插件。