Stack-allocated arrays

Kagamin spam at here.lot
Tue Nov 11 10:19:47 PST 2008


Since your code is designed to work in this way, you can implement allocation in a library. If you have one heap per thread, alloc is no more bottleneck. If you allocate only scope arrays, heap will have simplest stack design and will be extremely fast for this. Though with such design you should take caution when choosing in what heap to allocate and in what heap to free :3



More information about the Digitalmars-d mailing list