From: Stefan Lang Date: 2005-10-31T01:16:56+09:00 Subject: Re: Faster CSV parsing On Sunday 30 October 2005 17:05, James Edward Gray II wrote: > On Oct 30, 2005, at 8:55 AM, Stefan Lang wrote: > > On Sunday 30 October 2005 14:52, gabriele renzi wrote: > >> William James ha scritto: > > > > [...] > > > >>> For my test file of 1,964,211 bytes, it's about 6.4 times as > >>> fast. > >> > >> what things is this missing wrt standard csv.rb? > >> > >> Also, why you did choose to make all of the stuff (methods, > >> variables) at class level instead of instance ? > > > > A more OO (and equally fast) version: > > Ara.T.Howard posted a test framework for a bunch of edge cases on > Ruby Core, based on the CSV RFC (http://www.ietf.org/rfc/ > rfc4180.txt). Here's that framework modified to work with your > library: ... Doesn't look good :( I just took William James' code and converted the class variables/methods to instance variables/methods. Regards, Stefan