Closed garrettm closed 7 years ago
Okay, I just tested the ruby script, the rust version is way faster. But it doesn't have the same csv-specific properties that the ruby script does.
Hey, thanks for doing this! If you like, you can open a PR that adds this to the readme?
Cheers
done!
A program that can split one file into many. For example, I had a csv file that was 300mb and could not do any processing with it because it was so big. All the other alternatives that I checked out were either slow or not very user friendly. It should work on any file type, not just csv's. There is a good one here but I feel it could be made faster in C or Rust.
I made one in Rust, though I am a Rust novice. I don't know if this will be faster than the one you linked, but it does appear that my solution differs a bit (mine is split-into-N-chunks rather than split-into-chunks-of-N-lines). Also, probably worth noting that mine does nothing csv-specific, just raw line-wise splitting.
https://github.com/garrettm/splitters
It was a good learning experience! Thanks for this list of ideas.