From: Shashank Date Date: 2002-08-03T10:35:25+09:00 Subject: Re: IO.readlines is slow ? Thank you all for pointing me in the right direction. I have downloaded Ruby 1.7.2 and tried out reading very big (> 200 MB) files, and it works like a champ. (By way of comparison, Python 2.2 ran for a while and then aborted with some memory error and Perl 5.6 did not even load !) Thanks again. -- Shanko "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 > > > > > >