From: Charles Nutter Date: 2011-01-24T07:38:25+09:00 Subject: [ruby-core:34810] [Ruby 1.9-Bug#4298] Duration of calling String#[] with the same index is strangely related to string length. Issue #4298 has been updated by Charles Nutter. I think it's worth pointing out that Nobu's fix does not prevent String#[] from needing to do a character scan to reach the nth character, but it does fix the issue of always scanning all characters. I'll check if JRuby needs a similar fix. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4298 ---------------------------------------- http://redmine.ruby-lang.org