The GC and performance, but not what you expect
Marco Leise via Digitalmars-d
digitalmars-d at puremagic.com
Thu May 29 16:47:09 PDT 2014
Am Thu, 29 May 2014 12:35:46 +0000
schrieb "safety0ff" <safety0ff.dev at gmail.com>:
> On Thursday, 29 May 2014 at 10:09:18 UTC, 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.
>
> I would have seen it coming if the app. was multi-threaded.
>
> Hopefully a re-write of the GC would include something akin to
> Boehm GC's THREAD_LOCAL_ALLOC / google's TCMalloc.
Orvid has been inspired by TCMalloc. If he can realize his
idea of a GC it should have a similar thread local allocation
heap with no locking.
--
Marco
More information about the Digitalmars-d
mailing list