From: Caleb Clausen Date: 2006-07-28T02:18:57+09:00 Subject: Re: String#chop slow? REALLY slow? On 7/27/06, Mat Schaffer wrote: > I just did a quick benchmark to prove something to myself. But I'd > like to get a sanity check from the people on the list. [snip] > Benchmark.bmbm do |bench| > bench.report("Indexing") { > n.times do > bigstring[0..-1] > end > } [snip] No-one seems to have noticed the typo....? I think that 4th line should be: bigstring[0..-2] Which is slower. That should account for part of the performance gap.