discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOperationQueue thread pool size


From: Richard Frith-Macdonald
Subject: Re: NSOperationQueue thread pool size
Date: Wed, 5 Feb 2014 09:22:28 +0000

On 4 Feb 2014, at 19:10, Larry Campbell <lcampbel@akamai.com> wrote:

> Is there a reason that NSOperationQueue's thread pool size is hard-coded at 
> eight? For threads that are, say, doing network I/O, it would be very useful 
> to use more than eight.

IIRC the only reason is that when I was developing and testing behaviors on 
OSX, the system I was using seemed to run no more than 8 operations at a time, 
so it was a guess at an OSX compatible pool size.  For all I know this actually 
varies between different OSX versions or even for different circumstances (I 
haven't seen any documentation saying what the pool size should be).
I see no reason why we couldn't add a user default or environment variable to 
make it configurable, but it might make more sense to try testing what the 
latest OSX version does and aim for updating to match that if necessary.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]