Daily iOS
Performance and debugging

App launch time

You take over an app whose cold start takes more than 3 seconds. How would you split up and measure the launch time?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Split it into pre-main (dyld loading, static initializers) and post-main (didFinishLaunching, first screen render), and measure cold and warm launches separately on a real device in Release with the App Launch template and DYLD_PRINT_STATISTICS.

Share a question