From: James Edward Gray II Date: 2006-03-01T23:19:33+09:00 Subject: Re: Rio: which is the slow one? On Feb 28, 2006, at 7:59 PM, Oliver Cromm wrote: > The speed difference looks too extreme too me: > > > caps = [] > File.open('caps_u8.dic').each {|line| caps << line.split(';')[0]} > > => 1.8 seconds Here you are rolling your own split. > require 'rio' > caps = rio('caps_u8.dic').csv(";").columns(0)[].flatten > p caps > > => 50.9 seconds And here Rio is using CSV, which is known to be plenty slow. If we could get Rio patched to use FasterCSV when it is available, that would help quite a bit... James Edward Gray II