Upgrade to Pro — share decks privately, control downloads, hide ads and more …

App Performance Tips and Examples

App Performance Tips and Examples

LINE DevDay 2020

November 26, 2020

Transcript

18 slides
  1. Why Do We Care? › Apps that take over 5s

    to launch see 19% uninstall rates off the bat › Users want immediate behavior → <1s › Every 1s during app launch reduces conversion rate by 7%
  2. The real problem is that programmers have spent far too

    much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming — Donald Knuth, Computer Programming as an Art
  3. Keep in Mind › Absolute vs Relative Performance › Use

    Instruments › Remember your goal › Test on Device
  4. Compiler Settings › -O0, -O1, -O2, -O3, -Ofast, -Os, -Oz

    Clang Optimizations: Swift Whole Module Optimization (WMO) Swift Optimization: › -Onone, -O, -Osize LLVM Link-Time Optimization (LTO)
  5. Conclusion › MEASURE! › Make use of the compiler ›

    Code Smart › Be Sneaky › MEASURE!

More Decks by LINE DevDay 2020

Other Decks in Technology