Often repeated array allocations
Dmitry Olshansky
dmitry.olsh at gmail.com
Sun Jul 21 14:36:38 PDT 2013
22-Jul-2013 01:19, Namespace пишет:
> I really like the idea.
> I've changed it a bit:
> I have a float[1024] buffer which is used, as long as the requested size
> is less than 1024. If it's greater, I will temporary allocate the whole
> array with new float[Size];
> Any improvements? Or is 1024 to small / big?
No one size fits all. Measure and profit.
--
Dmitry Olshansky
More information about the Digitalmars-d-learn
mailing list