AccelerationNet/cl-csv — Issue #3: Make read-line-in work with stream
Author: dmitrys99
Created: 2012-01-19 13:59:40+00:00
State: open

Hello!

CL-CSV library uses read-line function to get next csv-file line (see https://github.com/AccelerationNet/cl-csv/blob/master/csv.lisp#L206). It is a little bit slow, because file is read line-by-line. If one will use read-sequence instead of read-line to read from stream, input will be processed several times faster.

It is necessary to change input buffer processing to make #\newline taken from input stream rather than from string.

One can say that it is possible to use read-csv with string (with help of make-string-input-stream, see https://github.com/AccelerationNet/cl-csv/blob/master/csv.lisp#L144), but it does not work with large files (large than available memory).

Thanks.