Results are in: static foreach is a slower than hand unrolling your loops or using mixins.

2010-04-29 Thread Gareth Charnock
I managed to get some free time to look at this and it would appear that static foreach is slower than hand unrolling a loop. Fortunately there are no detectable differences between hand unrolling a loop and building the body of the loop in a compile time string and using a mixin. Results are h

Re: Results are in: static foreach is a slower than hand unrolling your loops or using mixins.

2010-04-29 Thread Gareth Charnock
Correction, two of the loops were going backwards (mixin and hand unrolled). Fixed this but the conclusion remains the same. Gareth Charnock wrote: I managed to get some free time to look at this and it would appear that static foreach is slower than hand unrolling a loop. Fortunately there ar