On Tue, Jan 7, 2014 at 12:33 PM, Jabari Z. <lists / ruby-forum.com> wrote:

> I shared this information because I don't believe I have ever seen a
> comprehensive discussion, tests, benchmarks which document that WHILE
> loops have performance benefits under certain conditions and that if
> speed is an issue then people should at least modify their code and test
> it to see if using them is faster.


That's because it's a microoptimization that is typically cancelled out by
the time spent in the body of the loop. If you're doing anything nontrivial
within the loop body, the performance benefits of switching to while are
negligible.

-- 
Tony Arcieri