Ron Jeffries <ronjeffries / REMOVEacm.org> writes:

> t1 = Time.now
> count = 1
> File.open("data.txt") { | file |
> 	while (!file.eof?)
> 		line = file.gets
> 	end
> }
> puts Time.now - t1
> 
> I let it run for 20 minutes with no output. (A tiny file works fine.) I tried
> the same program using read(65000) instead of gets, just to see if the line size
> was the problem. I stopped it after 20 minutes also.

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.

YS.