Pointers vs. References

Michael Neumann mneumann at ntecs.de
Thu Jun 14 01:38:51 PDT 2007


Kristian Kilpi wrote:
> On Wed, 13 Jun 2007 10:09:24 +0300, Michael Neumann <mneumann at ntecs.de> 
> wrote:
> <snip>
>> ..., but there must be really something wrong in D (or in my 
>> implementation), as it's at least 4x slower (and when the datasets 
>> grow, it takes infinitively long time).
> <snip>
> 
> Well, one thing that comes to mind is that allocating memory from the 
> heap is *slow* (in any programming language I guess).

Thanks.
Yeah, I know! That's why I'm using a free-list in my program and recycle 
old objects.

Regards,

   Michael



More information about the Digitalmars-d mailing list