Fast temporary dynamic arrays? (And slicing of them)

bearophile bearophileHUGS at lycos.com
Sun Sep 5 19:59:29 PDT 2010


My first test shows that it may work. But I have to grow the array backwards, and push back the array start, because that's how my stack grows (using alloca to allocate geometrically bigger chunks). So unless you want to reverse the items once the array is built, you have to change the algorithm that uses the array a little.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list