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

Walter Bright newshound2 at digitalmars.com
Sun Aug 4 03:01:20 PDT 2013


On 8/4/2013 2:28 AM, Denis Shelomovskij wrote:
> 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?

Yes.

> 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

That's good to know, thanks!



More information about the Digitalmars-d-announce mailing list