in reply to Re (VSarkiss)2: Optimizations and Efficiency
in thread Optimizations and Efficiency
For further fun try:
which generates different results, on my machine anyway.# Method 3a: the vaguely Mathematica-ish way $sum = 0 + join('+', N..M);
One ought to also compare push, pop, shift, and unshift as well as while, for, foreach, do, and, shudder, a hand crafted LABEL loop.
|
|---|