TempAlloc review starts now

Daniel Gibson metalcaedes at gmail.com
Mon Jun 6 09:32:45 PDT 2011


Am 06.06.2011 18:34, schrieb dsimcha:
> == Quote from Andrei Alexandrescu (SeeWebsiteForEmail at erdani.org)'s article
>> On 6/5/11 5:25 PM, Lars T. Kyllingstad wrote:
>>> Code:
>>>
>>> https://github.com/dsimcha/TempAlloc/blob/master/tempalloc.d
>>>
>>> Docs:
>>>
>>> http://cis.jhu.edu/~dsimcha/d/phobos/core_tempalloc.html
>> I'll get back with a real review, but before I forget, there is one
>> thing that I also noticed in the proposal: TempAlloc is good to have but
>> the marketing folks should be dialed down a bit. In the documentation
>> TempAlloc lists two advantages compared to stack allocation and three
>> advantages compared to heap allocation. There's no disadvantage,
>> drawback, caveat, etc. listed at all. If we went by the documentation it
>> would appear that TempAlloc is the be-all-end-all memory allocator to
>> replace all others.
>> Documentation must clarify when use of TempAlloc is favored and when
>> other allocation methods should be chosen instead.
>> Thanks,
>> Andrei
> 
> Yeah, I'm really not sure how much marketing these proposals are supposed to have.
>  One criticism of my std.parallelism proposal, IIRC, was too little marketing.

But probably because it didn't show the advantages - and not because it
showed to many disadvantages ;)


More information about the Digitalmars-d mailing list