From: Nobuyoshi Nakada Date: 2011-01-23T08:27:06+09:00 Subject: [ruby-core:34801] [Ruby 1.9-Bug#4298][Closed] Duration of calling String#[] with the same index is strangely related to string length. Issue #4298 has been updated by Nobuyoshi Nakada. Status changed from Open to Closed % Done changed from 0 to 100 This issue was solved with changeset r30636. Rados��aw, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you. ---- * string.c (str_nth_len, str_utf8_nth): return the rest length together. * string.c (rb_str_substr): get rid of measure the length always to improve performance for huge string. [ruby-core:34648] ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4298 ---------------------------------------- http://redmine.ruby-lang.org