• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Class loading problem - taking forever
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Class loading problem - taking forever
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Uses for D2JC (was: Gianduia and WO)
  • Next by Date: Re: Uses for D2JC (was: Gianduia and WO)
  • Previous by thread: Re: What could that be?
  • Next by thread: Re: Class loading problem - taking forever
  • Index(es):
    • Date
    • Thread