You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Henri Yandell <fl...@gmail.com> on 2006/05/05 08:49:08 UTC

[csv] CSVStrategy and performance of CSVPrinter

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