Integrated: 8289572: InputStream wrapping with BufferedInputStream is redundant in HttpTimestamper
Сергей Цыпанов
duke at openjdk.org
Fri Jul 22 11:53:42 UTC 2022
On Fri, 1 Jul 2022 08:06:10 GMT, Сергей Цыпанов <duke at openjdk.org> wrote:
> In case we read all bytes from an `InputStream` we don't need wrapping with `BufferedInputStream` as the bytes are not written into internal buffer. With removal of redundant buffer we save 8 kB of allocated memory.
This pull request has now been integrated.
Changeset: 75c1e999
Author: Sergey Tsypanov <sergei.tsypanov at yandex.ru>
Committer: Jaikiran Pai <jpai at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/75c1e99968da1ee2f33a8c3a70070832fb403104
Stats: 6 lines in 1 file changed: 2 ins; 1 del; 3 mod
8289572: InputStream wrapping with BufferedInputStream is redundant in HttpTimestamper
Reviewed-by: jpai, mullan
-------------
PR: https://git.openjdk.org/jdk/pull/9343
More information about the security-dev
mailing list