Class loading problem - taking forever
Class loading problem - taking forever
- Subject: Class loading problem - taking forever
- From: John Huss <email@hidden>
- Date: Tue, 10 Nov 2009 09:20:35 -0600
I have an app that is taking an extremely long time to startup and start responding to requests (5-10 minutes). It appears to be spending a huge amount of time in NSBundle.searchAllBundlesForClassWithName, which has the ominous logging message:
"NSBundle.searchAllBundlesForClassWithName was invoked.
**This affects performance very badly.** "
What causes this method to be invoked? It seems to be called in other apps that work fine so I'm not sure if this is important or not.
For the time-being I've worked around the issue by calling _NSUtilities.setClassForName for a bunch of classes, but I'm not sure why this is necessary since I'm not doing that in other apps.
And in general this makes me think it would be better to do _NSUtilities.setClassForName for everything in Wonder for instance - if there is a performance (startup time) benefit.
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden