My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 9: Cache "System.getProperty("line.separator")" result instead of reading it for every line
1 person starred this issue and may be notified of changes. Back to list
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

Powered by Google Project Hosting