[gambit-list] fast csv parser (libcsv wrapped for gambit)

Bradley Lucier lucier at math.purdue.edu
Fri Feb 9 16:42:39 EST 2007

On Feb 9, 2007, at 1:36 PM, Phil Dawes wrote:

> Hi All,
> Ok - that prompted me to do a little speed testing on a large file  
> (6000
> odd records). Note that Marc's comma splitter doesn't actually do the
> parsing properly because many records are split over multiple  
> lines, so
> I'm guessing this is an upper performance limit on pure scheme?.
> wrapped libcsv  ~240ms
> Marc comma splitter  ~510ms
> Phil Bewig csv parser  ~1008ms
> I've pasted the timing code below.

Just a question---did you compile the Scheme code with the usual  
benchmark declarations

(declare (standard-bindings)(extended-bindings)(block)            ;;  
basically R6RS
          (fixnum) (not safe))                                     ;;  
I presume there's only fixnum characters in a line ;-)


More information about the Gambit-list mailing list