On Thursday, 6 February 2014 at 20:40:28 UTC, bearophile wrote:
Johannes Pfau:
Here's some example output for
std.uuid/digest/path/range/algorithm/curl:
http://dpaste.dzfl.pl/96d3725b06e2
./dmd -vgc ~/Dokumente/d/phobos/std/range.d -c -unittest
/home/jpf/Dokumente/d/phobos/std/range.d(7307): vgc: Array
literals cause gc allocation
Since some time in some cases dynamic array literals don't
allocate.
And there's also this:
https://github.com/D-Programming-Language/dmd/pull/2952
the [1, 2]s syntax guarantees no heap allocation.
Bye,
bearophile
My pull was not perfect. And I have no time to finish the type[$]
and auto[$] pull. :/