new T[size] vs .reserve

bearophile bearophileHUGS at lycos.com
Sun Feb 3 12:21:06 PST 2013


Era Scarecrow:

> I barely have ever used alloca myself,

I have used alloca less than 10 times in D with DMD, but the 
performance improvement was well visible.


> Maybe a possible use for a template instead?

I don't know.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list