On Thursday, 22 December 2016 at 03:18:42 UTC, Jerry wrote:

Not using AliasSeq if that's what you mean. I don't know if the "tupleof" for a struct would be considered the same as "T..." but basically what I was doing:

foreach(ref field; myLargeStruct.tupleof)
{
}

Yes that is a compiler-tuple as well.
which means that the foreach is not loop at all.
Rather it's body gets duplicated myLargeStruct.tupleof.length times.
Leading to giant numbers statements, at those conditions
 N^{2,3,N} algorithms in the optimizer do not scale gracefully.

Reply via email to