You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2021/07/12 20:38:00 UTC
[jira] [Created] (CSV-277) Do not Extend BufferedReader in
ExtendedBufferedReader
David Mollitor created CSV-277:
----------------------------------
Summary: Do not Extend BufferedReader in ExtendedBufferedReader
Key: CSV-277
URL: https://issues.apache.org/jira/browse/CSV-277
Project: Commons CSV
Issue Type: Improvement
Reporter: David Mollitor
{{BufferedReader}} is a synchronized method class which means that every call to {{read}} requires synchronization.
Usually it's not an issue, but for {{commons-csv}}, it adds a lot of overhead because it reads each byte one at a time. So even though it's buffered, it has to go through a synchronization processes for each byte read.
Change {{ExtendedBufferedReader}} to implement its own internal buffer.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)