General

Profile

zmoazeni (Zach Moazeni)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

03/20/2013

09:00 AM Ruby Bug #8129: String#index has drastically different performance when a single unicode character is included
Thanks for the feedback Charlie and Nobuyoshi. This came up from https://github.com/kschiess/parslet/issues/73 which heavily uses String#index (http://www.ruby-doc.org/core-2.0/String.html#method-i-index) by passing a position to search ... zmoazeni (Zach Moazeni)
08:23 AM Ruby Bug #8129 (Rejected): String#index has drastically different performance when a single unicode character is included
=begin
I created a simple ruby script:
#! /usr/bin/env ruby
raise "need a file name" unless ARGV[0]
contents = File.read(ARGV[0])
326_000.times do |i|
contents[(i + 23) % contents.size]
end
And I uploaded two file...
zmoazeni (Zach Moazeni)

Also available in: Atom