|
|
| "be consistent" | |
| PerlMonks |
(tye)RE: The Best Infinite Loopby tye (Cardinal) |
| on Oct 17, 2000 at 10:23 UTC ( #37103=note: print w/ replies, xml ) | Need Help?? |
|
I looked at those benchmarks and said, "Well, those all took the same amount of time." Then I read the conclusions drawn and frowned. The numbers are way too close together to determine that any of these are faster than the other. In fact, I'd be surprised if the first two don't compile to the exact same parse tree. Compare my benchmarks: Note that the first time for(;;) is the slowest and the second time it is the fastest. I'm sticking with while(1) since I think it looks nicer. - tye (but my friends call me "Tye")
In Section
Meditations
|
|
||||||||||||||||||||||||