commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell" <flame...@gmail.com>
Subject [csv] CSVStrategy and performance of CSVPrinter
Date Fri, 05 May 2006 06:49:08 GMT
I extracted the strategy code from the CSVParser. Still need to roll
it into use in CSVPrinter.

Speaking of which, CSVPrinter's speed problems are partly due to
calling PrintWriter.flush() a huge number of times to the point where
half of the cpu time is spent in that method.

Solution-wise, the flush() in the print(String) method needs to go at
the very least. One way to make that more palatable would be to pull
the flush up into the CSVPrinter API, put the user in charge.

Hen

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message