quick-csv

Fast Csv reader which performs very well.

Example

First, create a Csv, either from a file or from a BufRead reader.

```rust extern crate quick_csv;

fn main() { let csv = quickcsv::Csv::fromfile("test.csv").unwrap(); for row in csv.into_iter() { // work on csv row ... } } ```

Row is on the other hand provides 3 methods to access csv columns: - columns: - iterator over columns. - Iterator item is a &str, which means you only have to parse() it to the needed type and you're done

rust let mut cols = row.columns(); let fifth = cols.nth(5).unwrap().parse::<f64>(); println!("Doubled fifth column: {}", fifth * 2.0);

Benchmarks

I mainly benchmarked this to rust-csv, which is supposed to be already very fast. I tried to provide similar methods even if I don't have raw version.

License

MIT