Dynamic array ot not

Ali Çehreli acehreli at yahoo.com
Sun Jan 16 23:34:41 UTC 2022


On 1/16/22 15:14, forkit wrote:

 > But -profile=gc .. says no. It's not.
 >
 > int[][] mArr = [[1, 2], [3, 4], [5, 6], [7, 8]]; // GC allocation occurs.
 > int[][] mArr = iota(1, 9).chunks(2).map!array.array; // No GC allocation
 > occurs.

Definitely a -profile=gc bug. Here are the existing ones:

   https://issues.dlang.org/buglist.cgi?quicksearch=profile%20gc

Ali



More information about the Digitalmars-d-learn mailing list