The GC and performance, but not what you expect

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Thu May 29 03:41:30 PDT 2014


On 2014-05-29 12:09, Atila Neves wrote:

> The GC is preventing me from beating Java, but not because of
> collections. It's the locking it does to allocate instead! I
> don't know about the rest of you but I definitely didn't see that
> one coming.

Doesn't the runtime know how many threads currently exist? If it's only 
one, could the GC avoid the locking?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list