Often repeated array allocations
Jacob Carlborg
doob at me.com
Mon Jul 22 02:38:14 PDT 2013
On 2013-07-21 12:18, Namespace wrote:
> But then I have mostly far too much and maybe a few times a bit too less
> store. It's not flexible. But maybe with a smaller granule.
> What's about this:
You said you needed between 100 and 4000 floats. My suggestion will
allocate 4000 floats once per thread. Use what you need from the array.
I guess your solution with Chunk encapsulate this usage pattern.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list