• 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
Re: Newbie query re multithreading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie query re multithreading


  • Subject: Re: Newbie query re multithreading
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 18 Aug 2009 10:37:53 -0400


I don't have very much by way of help for you because honestly I don't think there's enough information here for more than generalities, but ..


1) With 1 CPU (NSOperation not used), I get 50% of CPU-time devoted to
auto_collection_thread which I presume means Garbage Collection. Is this
normal? It seems excessive.

... you know you can manually manage resources, right? Forgive me for not knowing the specifics (I haven't delved enough into GC to speak authoritatively on the matter), I think if you select GC optional (versus required) for your target, then disable garbage collection and manually manage your operations' resources, you can do what you need to do and immediately clean up on exit. That's surely faster than letting GC traipse about your object graph, looking for low-hanging fruit.


That's *one* way to squeeze some more performance from your Cocoa version, I would imagine.

With regard to Instruments, I encourage you to get hold of the "new shiny" (10.6) if you haven't got it already and see if that works better for your purposes. A hint: it probably will. ;-)

--
I.S.




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Newbie query re multithreading (From: "McLaughlin, Michael P." <email@hidden>)

  • Prev by Date: Re: Newbie query re multithreading
  • Next by Date: Re: Newbie query re multithreading
  • Previous by thread: Re: Newbie query re multithreading
  • Next by thread: Re: Newbie query re multithreading
  • Index(es):
    • Date
    • Thread