From: Robert Klemme Date: 2008-03-09T19:09:54+09:00 Subject: Re: duplicating characters in a string On 07.03.2008 19:41, Joel VanderWerf wrote: > Robert Klemme wrote: >> What version did you test with? I get much more dramatic differences: > > $ ruby -v > ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux] > > Surprising. The slower cases in your results are all the block cases. > Does cygwin ruby perform poorly with blocks in general? Or is it because > my ruby is compiled for i686 instead of i386? Probably. But note that blocks must be slower because they are Ruby code while the replacement without block is done in compiled C code. Kind regards robert