evan / ccsv

A pure-C CSV parser for Ruby
http://blog.evanweaver.com/files/doc/fauna/ccsv/
Academic Free License v3.0
64 stars 52 forks source link

Add option to read from IO objects in addition to files #10

Open jpmckinney opened 9 years ago

zhum commented 9 years ago

This is complicated task, because it needs to put Ruby IO methods inside C-code... But merge requests are welcome!

jpmckinney commented 9 years ago

I just wrote my own library https://github.com/opennorth/fastcsv as all the others either had errors, were incompatible with Ruby's CSV, or were slow. Benchmark: https://github.com/jpmckinney/csv-benchmark

And it reads either Strings or IO objects (e.g. a File).