[phobos] Gcx: Would we ever want more than one?
Brad Roberts
braddr at puremagic.com
Sat May 14 19:09:15 PDT 2011
On 5/14/2011 7:02 PM, David Simcha wrote:
> On 5/14/2011 8:28 PM, Sean Kelly wrote:
>> Technically, you want a free list per core. I don't know how practical it is to figure that out though.
>>
>> Sent from my iPhone
>>
>> On May 12, 2011, at 8:14 PM, David Simcha<dsimcha at gmail.com> wrote:
>
> The idea being that, if you have a free list per core, there will almost never be any contention in practice, even if
> you have way more threads than cores?
Ideally neither contention nor cache swapping. It'd stay in the l1 or l2 of the core directly involved with the
allocations. By being thread centric even if not contended it could still wander between cores and thus the caches
associated with them.
A serious micro-optimization, but..
More information about the phobos
mailing list