I never realized that while()
could be used as an infinite loop, so I went and benchmarked it up against for (;;)
and I got these results:
Benchmark: timing 20000 iterations of for, while()...
for: 45 wallclock secs (43.95 usr + 0.00 sys = 43.95 CPU) @ 45
while(): 43 wallclock secs (43.28 usr + 0.00 sys = 43.28 CPU) @ 46
Note: Do not be alarmed if it took longer this time than in the above post, I did it on a slower computer.
Sooo..., I guess you were right!!
Zenon Zabinski | zdog | email@example.com