How to save RAM in D programs (on zero initialized buffers): Reloaded
F i L
witte2008 at gmail.com
Tue Feb 7 15:26:35 PST 2012
Artur Skawina wrote:
> That won't help - the compiler will defeat the optimization by
> "initializing" the area...
I see.
Timon Gehr wrote:
> The solution with the best performance and least memory
> requirements obviously must be the default.
No argument here. Only, if calloc is an all-around better
allocation method than malloc, why is malloc even used?
More information about the Digitalmars-d
mailing list