New malloc() for win32 that should produce faster DMD's and faster D code that uses malloc()

dennis luehring dl.soluz at gmx.net
Mon Aug 5 07:03:06 PDT 2013


Am 04.08.2013 11:28, schrieb Denis Shelomovskij:
> 04.08.2013 1:55, Walter Bright пОшет:
>> The execrable existing implementation was scrapped, and the new one uses
>> Windows HeapAlloc().
>>
>> http://ftp.digitalmars.com/snn.lib
>>
>> This is for testing porpoises, and of course for those that Feel Da Need
>> For Speed.
>
> So I suppose you use `HeapFree` too? Please, be sure you use this
> Windows API BOOL/BOOLEAN bug workaround:
> https://github.com/denis-sh/phobos-additions/blob/e061d1ad282b4793d1c75dfcc20962b99ec842df/unstd/windows/heap.d#L178
>

but please without using two ifs and GetVersion on every free call


More information about the Digitalmars-d-announce mailing list