I've got an iOS app that links to 15 Apple frameworks (including the ~3 basic ones every app uses). I've noticed that my app's load time, and time restoring from the background, is pretty high, though the executable is only 600kb. Could all these frameworks be the cause of the load time issue? And is it possible to, say, lazily-load frameworks as needed?
Asked
Active
Viewed 495 times
1 Answers
2
Yes dynamically linked frameworks do affect load time, you can see this in instruments using the time profiler. You should see dyload running as your app launches and it will take time to load in each framework.
Even worse if have static code in something like +initialize this will run at load time too, further slowing your app.

Neil Foley
- 1,763
- 1
- 13
- 32
-
+initialize isn't too bad as it only runs the first time the class is used in some fashion – Mike Abdullah Jun 30 '12 at 21:30