Sunday, January 6, 2008

A Fast CSV Reader

CodeProject: A Fast CSV Reader. Free source code and programming articles

Latest Updates (3.5 Release)

Fixes

  • Fixed a bug when initializing CachedCsvReader without having read a record first.

Benchmark and Profiling

You can find the code for these benchmarks in the demo project. I tried to be fair and follow the same pattern for each parsing method. The regex used comes from Jeffrey Friedl's book, and can be found on page 271. It doesn't handle trimming and multi-line fields.