Default Slow Access for ClientState Key Alert on iOS

I get "Slow default access for a key ClientState client in 0.034635 seconds, tolerance 0.020000" when testing my iOS application - it seems to happen intermittently. I tried to look around to understand what it was about, but I'm not quite sure! Any help appreciated, thanks.

+7
source share
4 answers

My best guess is that the first Viewcontroller takes a long time to load.

I never received this message before adding a large png background to the first view controller, which now exhibits the same behavior, but all the time. Take out the png, and I did not get it for 5 loads.

+3
source

Guess the same thing as detection: the first viewController loads too long.

In my case, the application starts by populating the View table from the last CoreData saved. Immediately after the server tells me that the authorization has expired, I start re-authentication, and the appearance of the facebook login appears on the screen - on top of the View table.

It was a mistake. Without logging into facebook, everything is fine == fast enough.

+1
source

SMSidat - I had the same problem and I searched for it forever. I have a sqlite database, and when I loaded vc that accessed the database, it indicated "slow defaults". ClientState took a long time to download and thatโ€™s it.

Try removing the automatic layout from your feathers. Once I have done this, there are no more "slow defaults ... warnings"! Although this is already 3 years ago ... I hope this helps someone to help.

Here is a link to the tread that helped me Slow UIViewController boot time (ClientState slow warning)

+1
source

In my experience, this is due to the fact that you need to load a view when it is called. Take my example, for example. I had a TabBar app, and on one of my tabs it was a gallery. I called the view, but within the view I collected everything in the main thread (big no no) ... obviously, the user interaction has disappeared from the window, and the application will close before completion. The phone takes time to upload images and present a presentation. As soon as I multi-threaded downloaded my application and images downloaded in the background, there were no more warnings. Hope this helps, I donโ€™t know how this warning works under this, but that changing it all got rid of it. :)

0
source

All Articles