On Wed, Jun 9, 2010 at 3:47 PM, Kyle R. Burton <kyle.bur...@gmail.com> wrote:
>> When I say that it supports the RFC I mean that the library should be
>> able to read any file that follows that standard. It might (and it
>> does) read files that do not follow the standard. Here are some
>> examples:
>>
>> 1) quotes can appear anywhere, not only as the first and last
>> character in a cell.
>> 2) records can be of different length.
>> 3) any character can be used as quote or separator.
>> 4) The problem you raised, i.e., that the file might end in a "quoted"
>> state and still be read without exceptions.
>>
>> I'll consider adding a :strict flag which would throw an exception for
>> points 2 and 4. However, I don't want to sacrifice performance since I
>> consider that to be the most important feature in any csv reading
>> library (people often have Gb+ sized csv files).
>
> I appreciate your needs, mine differ a bit, in some circumstances I
> want strictness for the format.  Ideally for my own use cases I'd like
> to be able to know about or reject the entire file if #4 occurs, but
> allow #2.  I'd imagine adding in the additional logic will have some
> impact on performance.

Checking #4 wouldn't have a performance hit, so I'll probably add
that. I have to think about the other points.

>
> Regarding performance, have you considered adding a benchmarking
> harness to the project?

Yes, I have thought about it. It would be fun to compare cljcsv,
clojure-csv, OpenCSV and SuperCSV (are there others?). I have looked
into it a bit, and if my measurements are correct it's faster than
clojure-csv and within 10% of OpenCSV.


>
> Thank you for publishing the library.
>

Thanks for showing interest!

Jonas

>
> Regards,
>
> Kyle
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to