Flutter随笔

Flutter App 启动优化

2020-08-28  本文已影响0人  嘛尼嘛哄

App静态分析

  1. http://blog.dornea.nu/2014/10/29/howto-ios-apps-static-analysis/

  2. hook hot methods
    https://github.com/facebook/hhvm/tree/master/hphp/tools/hfsort

  3. PGO
    [https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/xcode_profile_guided_optimization/pgo-using/pgo-using.html#//apple_ref/doc/uid/TP40014459-CH3-SW1]参考 (https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/xcode_profile_guided_optimization/pgo-using/pgo-using.html#//apple_ref/doc/uid/TP40014459-CH3-SW1)

  4. LinkMap
    https://github.com/huanxsd/LinkMap

  5. App launch improve
    https://devstreaming-cdn.apple.com/videos/wwdc/2019/423lzf3qsjedrzivc7/423/423_optimizing_app_launch.pdf?dl=1

  6. App.framework瘦身
    https://www.jianshu.com/p/9d5e12efcb05

  7. Cocoapods条件编译,将部分动态库转换为静态库(最优方案,正在研究)
    http://www.kittenyang.com/dyld-image-loading-performance/

  8. Carthage 动态库转静态库,
    https://github.com/Carthage/Carthage/blob/master/Documentation/StaticFrameworks.md

  9. 插件分离。
    将小部件依赖较少的插件分离成package和native端代码
    此方案有效,但会增加一定的维护成本,而且调试起来也不方便

上一篇 下一篇

猜你喜欢

热点阅读