IPhone startup time reduction

I am trying to investigate a very long startup time for my application and can use some help. It takes about 6-7 seconds to start, and it takes too long. I do not download any datasets or anything else, but the application is a calculator, so my xib has a lot of buttons and button images.

I would like to use the Tools (or something else) to analyze where all the time is spent so that I can optimize, but the documentation for the Tools does not really give me details on how to use it for this particular problem and / or how to interpret the results.

Do you have any suggestions for testing? A pointer to a guide to using tools for this? ITunes U video or something else?

Any suggestions are welcome!

Kenny

+3
source share
4 answers

Before making any of the above suggestions:

Is this 6-7 seconds while working with Xcode? Or from launching directly by tapping it on the iPhone?

Debuggers and tools will not help you, because they simply add to overhead and do not help in profiling, because it poisons the data that you see.

Edit:

In terms of profiling tools, you can look at using Shark: http://www.switchonthecode.com/tutorials/using-shark-to-performance-tune-your-iphone-app

It is quite simple to use as a whole. This is self-evident.

+1

, ... , , , , .

- , . , , , , Paul, 0 , 1 . 3 , .

, --. ( , ).

100 ( ) 15, , . 50 , , Shift, , . , , , . , "" xib, , xib.

, , , ( , , ), , . , , , , 2 , ... , , , .

+2

:

  • , ?
  • () ?
  • - ? ( )
  • - , ?
+1
source

I would measure the startup time of an empty dummy application (possibly an application template based on Xcode Window) on your actual device (a disabled debugger). Then start adding initialization code, views, and objects from your application to this dummy application until you find it that slows down the startup time.

0
source

Source: https://habr.com/ru/post/1775913/


All Articles