How to save RAM in D programs (on zero initialized buffers): Reloaded

Artur Skawina art.08.09 at gmail.com
Tue Feb 7 15:19:10 PST 2012


On 02/08/12 00:01, F i L wrote:
> Can't you just write a custom allocator using calloc for performance critical structures (http://dlang.org/memory.html#newdelete), or do what Iain said.

That won't help - the compiler will defeat the optimization by "initializing" the area...


artur


More information about the Digitalmars-d mailing list