Increasing D Compiler Speed by Over 75%

Dmitry Olshansky dmitry.olsh at gmail.com
Fri Aug 2 15:15:24 PDT 2013


02-Aug-2013 20:40, Walter Bright пишет:
> On 8/2/2013 8:18 AM, Daniel Murphy wrote:
>> On a related note, I just tried replacing the two ::malloc calls in
>> rmem's
>> operator new with VirtualAlloc and I get a reduction from 13 seconds to 9
>> seconds (compiling "dmd std\range -unittest -main") with a release
>> build of
>> dmd.
>
> Hmm, very interesting!
>

Made a pull to provide an implementation of rmem.c on top of Win32 Heap API.
https://github.com/D-Programming-Language/dmd/pull/2445

Also noting that global new/delete are not reentrant already, added 
NO_SERIALIZE flag to save on locking/unlocking of heap.

For me this gets from 13 to 8 seconds.

-- 
Dmitry Olshansky


More information about the Digitalmars-d-announce mailing list