Since I converted the old application to iOS 6, I started getting the following message on my console.
WARNING: Slow defaults access for key ClientState took 0.023656 seconds, tolerance is 0.020000
Besides updating my code from iOS 5 to iOS 6, I also switched to automatic linking. I ran Tools / Time Profiler and the rootViewController in my appDelegate application. Each time I switch view controllers, it sucks most of the time (regardless of whether I have to instantiate a view controller or reuse one that already exists).
window.rootViewController = myViewController;
I know what the method does superficially, but I'm not sure what is going on under the covers ... what can make it slow now and what can I do to speed it up?
EDIT: I tried removing the storyboard from auto-layout and the problem goes away (of course, my user interface layout is in ruins). So the obvious conclusion is that this is something about auto-layout. I probably have a little less than 70 views, all integrated on the screen, and various restrictions necessary for their calculation. I hardly believe that auto-linking is much slower (from ~ 80 ms, with auto-linking turned off to ~ 1370 ms with auto-linking enabled).
Dbd
source share