C++17

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 26 12:05:16 PST 2016


On Tuesday, 26 January 2016 at 19:04:33 UTC, rsw0x wrote:
>> Now as to when, well, I'm waiting for your PR.
>
> They will never have the performance of e.g, jemalloc.
>

In fact I will. The design of SDC's GC is based on jemalloc after 
extensive discussion with Jason Evan. He is considering 
backporting part of the work in jemalloc.

Namely, the only major additional work that need to be done is to 
write one uint per page on "large" allocations (namely 16kb - 
192kb) in order to be able to detect internal pointers. 
Considering these aren't that common to boot, this is not 
expected to impact perfs significantly.

On the other hand, D's type system can be leveraged to reduce 
lock contention on the GC (and not lock at all on thread local 
allocs).

Really, there is a lot to be done here and I'm reluctant to push 
for more language things while what we have is far from top notch.


More information about the Digitalmars-d mailing list