in reply to Doing "it" only once
I think the problem is going to be the "negligible cost". Without unrolling the loop internally, you'd still be forced to evaluate an if, unrolling the loop adds complexity etc.
Thanks for the snippet anyway, whether or not it is actually worth the trouble, it's still a nice trick.
-Scott
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Doing "it" only once
by 5mi11er (Deacon) on Sep 22, 2005 at 14:42 UTC |