juancarlospaco / faster-than-csv

Faster CSV for Python
https://juancarlospaco.github.io/faster-than-csv
MIT License
99 stars 8 forks source link

Read with iterator #4

Closed sonic182 closed 4 years ago

sonic182 commented 5 years ago

Would be nice to read csv having an iterator

vdg0 commented 4 years ago

Oh, so, you can not read the entire file? There is no such thing implemented yet? Are you sure @sonic182?

sonic182 commented 4 years ago

Yes, there is no method yielding rows

juancarlospaco commented 4 years ago

This is not supported by design. It is designed to get the CSV data as fast as possible.

This is not effective because sending arguments and returns to/from "C world" into "Python world" has overhead, but if you have that overhead on each line like it would with an iterator it will be slower, basically worse than standard library, if you need that use standard library. Sorry. 🤷‍♀️