RFR: 8280010: Remove double buffering of InputStream for Properties.load
Sergey Bylokhov
serb at openjdk.java.net
Fri Jan 14 12:21:55 UTC 2022
On Mon, 10 Jan 2022 20:46:36 GMT, Andrey Turbanov <duke at openjdk.java.net> wrote:
> `Properties.load` uses `java.util.Properties.LineReader`. LineReader already buffers input stream. Hence wrapping InputStream in BufferedInputStream is redundant.
The code change looks fine, but can you please check the actual performance impact, will the perf be the same after the change?
-------------
PR: https://git.openjdk.java.net/jdk/pull/7021
More information about the core-libs-dev
mailing list