3 ms·
> using csv (serde) for writing leads to some big gains Could you explain that, if you have the time? Is that for writing the output lines? Is actual CSV funct
by dbdr 1y ago
> using csv (serde) for writing leads to some big gains
Could you explain that, if you have the time? Is that for writing the output lines? Is actual CSV functionality used? That crate says "Fast CSV parsing with support for serde", so I'm especially confused how that helps with writing.
- LtdJorge 1y agoYes, it’s used just for writing
- noamteyssier 11mo agoYeah I'm using it to serialize the output lines as a TSV. Rust's `println!` is notoriously slow and using `csv` to serialize the output is a nice way to boost throughput
- dbdr 11mo agoThanks. Nice find! Though it feels weird to have to use a csv crate for that. Ideally the `fast printing` part should be understood, and either used directly, or extracted as a separate, smaller crate.