Closed ringabout closed 1 week ago
Thanks for your hard work on this PR! The lines below are statistics of the Nim compiler built from 21420d8b0976dc034feb90ab2878ae0dd63121ae
Hint: mm: orc; opt: speed; options: -d:release 177497 lines; 8.663s; 653.258MiB peakmem
fixes #24402
In
for oneDindex, innerArray in myPairsInline(my2dArray)
,oneDindex
andinnerArray
becomescursors
because they satisfy the criterion ofisSimpleIteratorVar
. On the one hand, it is not correct to have them point to the temporary generated by tuple unpacking, which left the memory of the temporary uncleaned up. On the other hand, we don't need to generate a temporary for a symbol node when unpacking the tuple.