I replied to Phil privately, but since others have joined the conversation, I'll respond publicly.  I use the code at pbewig.googlepages.com/ProcessingFieldedTextFiles.pdf to process comma-delimited files and other text-formatted databases.  I've never timed it, or compared it to other code, but it's always been fast enough for what I wanted to do.  Let me know if you find it useful.

Phil (another Phil, not the original poster)

On 2/9/07, Phil Dawes <pdawes@users.sf.net> wrote:
Marc Feeley wrote:
> Interesting.  But why would you do it in C (in 600 lines of code) when
> you can do it in 20 lines of Scheme?
>

Ignorance maybe!
There's a little more to csv parsing than just splitting on ",", but
having said that your code runs a lot quicker than I was expecting.

I had tried http://www.neilvandyke.org/csv-scm/ but this was really slow
so turned my sights to wrapping a c library.

Thanks!

Phil
_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list