From: Thomas Enebo Date: 2011-01-24T09:51:14+09:00 Subject: [ruby-core:34814] [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 Thomas Enebo. Marcin and I were wondering the other day why character length is not cached in the string. It seems whenever code range has to be updated str length cache could also be updated with little extra cost. Is there a thread that explains why caching character length was not done. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4298 ---------------------------------------- http://redmine.ruby-lang.org