From: Intransition Date: 2010-10-07T22:28:18+09:00 Subject: Re: Benchmarks Project and example for `||=` On Oct 7, 12:57 am, Ammar Ali wrote: > It would be interesting to have performance comparisons of the various > idioms in common use. > > In these examples, however, it's not surprising that the first loop (without > ||=) would be faster. It's not doing anything really. The second involves > testing wether the variable is defined or not, every iteration. Yep. I wrote it b/c I wanted to know *how much* slower using ||= is.