From: "Maurício" Date: 2002-08-03T03:51:11+09:00 Subject: Re: IO.readlines is slow ? Just to report, I have a similar problem: on my system (Ruby 1.66, pragmatic programmers ruby install for Windows), openning a 4Mb file takes between half a minute and 40 seconds using File.read (not File.readline). Maur�cio "Shashank Date" wrote in message news:3jl29.3939$ua1.140046@twister.rdc-kc.rr.com... > I really like the convenience of doing: > > arr = IO.readlines("test1.txt") > > and then using [arr] to massage my data. > > But, when "test1.txt" is a big file (say 4MB) it takes for ever to read the > file. > > Is there any way to make it faster without sacrificing the terseness. > > (Similar constructs are much faster in Python and Perl world). > > Please help. > > -- Shanko > > > > > > >