Re: System resources and number of operations on an NSOperationQueue
Re: System resources and number of operations on an NSOperationQueue
- Subject: Re: System resources and number of operations on an NSOperationQueue
- From: James Bucanek <email@hidden>
- Date: Sun, 14 Nov 2010 13:42:34 -0700
Antonio Nunes <mailto:email@hidden> wrote (Sunday,
November 14, 2010 11:18 AM -0000):
The sweet spot may of course differ on different machines and systems, so that
is where setMaxConcurrentOperationCount comes in handy.
Not only will it vary from machine to machine, but it's going to
very from minute to minute depending on what other I/O activity
the user is doing, how much unused RAM is available (for disk
caching), and other factors.
If you need the absolute maximum performance, then it's going to
have to be tweaked individual for every system. Otherwise, just
profile the performance on a variety of systems and pick a
concurrency count that looks like the best compromise.
--
James Bucanek
_______________________________________________
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