From: Damjan Rems Date: 2009-03-29T16:20:11+09:00 Subject: Re: Bug: Ruby 1.9.1 File io on Windows is slooooow Nobuyoshi Nakada wrote: > Hi, > > At Fri, 27 Mar 2009 23:16:38 +0900, > Alex Fenton wrote in [ruby-talk:332264]: >> I'm pretty sure from your other message that it's using Ruby 1.9 with >> UTF-8 encoded strings that kills performance. I get equivalent results >> on OS X comparing 1.8.6 to 1.9.1 on common string operations like >> String#[](a_fixnum). > > Slow-read is caused by universal-newline. Should'nt fread be reading binary file or should that be forced by 'rb' parameter at file.open() I did fast test on Ubuntu x64 Linux. And the problem does not exist. Althow it was Ruby version 1.9.0. by TheR -- Posted via http://www.ruby-forum.com/.