Issue 9: Cache "System.getProperty("line.separator")" result instead of reading it for every line
Status:  New
Owner: ----
Reported by pascalsc...@gmx.net, Sep 27, 2013
When we profiled our application we noticed that a lot of time was spend in the "System.getProperty("line.separator")" call of the CSVWriterImpl.write(E e) method.

I attached a patch which modifies CSVWriterImpl to store the "line.separator" property in a private field. It would be nice if this patch is merged into a future release of jcsv. 

Thanks for providing this useful library. :=)



cache_line.separator.patch
1.0 KB   View   Download