From: Olonichev Sergei Date: 2002-03-12T02:23:53+09:00 Subject: Re: file reading impossibly slow? >Perhaps I am mistaken, but I read somewhere in this newsgroup that IO >performance is improved vastly in 1.6.7. I'm using 1.6.6, and I >agree if you say that 1.6.6 is much slower than perl in line reading. On file of 111666 K ruby 1.6.2 (2000-12-18) [i386-cygwin]: 31.165 223884 ruby 1.6.7 (2002-03-01) [i686-cygwin]: 35.171 223884 This is the output of: t1 = Time.now count = 1 File.open($*[0]) { |file| while (!file.eof?) line = file.gets count += 1 end } puts Time.now - t1 puts count