I'm currently using @BurntSushi's ace
csv library. All the examples I have read don't mention buffering the input, so I assume that any buffering that needs to take place for performance happens inside the library. However, this kinda clashes with my intuition that it's the responsibility of the user of the library to handle performance concerns like buffering.
So my question is: whose job is it to buffer, is it:
- the library that will be calling
- the library consumer,
- sometimes one, sometimes the other?
EDIT found a quote in the library docs:
Note that we do not wrap the
Filein a buffer. The CSV reader does buffering internally, so there's no need for the caller to do it.