Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone/iOS: Best practices to shorten launch time of an app?

Tags:

ios

iphone

I found it took 4-5 seconds on an iPhone4/iOS6.0 device, and I want to know what is the system doing in that time, are there any best practices to short the launch time of an app?

many thanks.

EDIT: I log it and it took about 1.5s in applicationDidFinishLaunchingWithoptions: ,and it is like 3.5-4s(I used a clock to get a preciser time) from I tap the app icon to its launch screen disappear.That is to say, about 2-2.5s to launch the app before calling applicationDidFinishLaunchingWithoptions

like image 213
CarmeloS Avatar asked Nov 27 '12 02:11

CarmeloS


2 Answers

Simply watch Session 225 Up and Running: Making a Great Impression with Every Launch from WWDC 2012, it will take you through the process of profiling your app launch and give tips on most often made mistakes, it's great.

like image 158
Dmitry Shevchenko Avatar answered Nov 15 '22 11:11

Dmitry Shevchenko


There is a very very good WWDC 2012 video with a long sequence devoted to exactly this topic: Session 235 (Responsiveness). I strongly recommend that you watch it. It gives you lots of hints and tricks for speeding up launch (don't link to too many libraries, etc.), tells you how to measure and how to read your measurements in Instruments, etc.

like image 35
matt Avatar answered Nov 15 '22 12:11

matt