From: Roger Pack Date: 2010-02-10T06:09:54+09:00 Subject: [ruby-core:28138] Re: [Bug #2722] gets on a large file takes a very very long time > |This problem occurs on 1.8.6, 1.8.7 and 1.9.1 (all the versions I tested) > > I could reproduce the problem on 1.9, but not on 1.8. �1.9 has been > fixed by r26622. �Thank you for the report. Hmm. For me it performs fast when I replace .gets with .read Perhaps there is a reason for this? with ruby 1.9.2dev (2010-02-10 trunk 26629) [i386-mingw32] gets: 9.2s read: 0.3s with 1.8.6 gets: 18s read: 0.3s Thanks. -r