nimble_csv
nimble_csv copied to clipboard
Count of entries?
Is there a way to get the count of entries in the file?
@hopewise you can use the stream function and then perform Enum.count/1
. Even though we need to traverse the file to find out the number of entries, we could optimize the code to avoid building binaries. This optimization is not present today.
Hey @josevalim is this issue still open as a reminder?
In a way yes, but it is a bit complicated to implement because you cannot simply look at newlines, as the newlines may be part of a column, but it should be doable. :)
Thanks @josevalim for the hint.
Hey @hopewise I guess @josevalim said the issue should be left open so we remember to do something about it in the future. I can take a shot at this if you want.
ops, thanks @kelvinst for your note