Integrated: 4926314: Optimize

Philippe Marschall at
Mon Apr 26 17:38:06 UTC 2021

On Thu, 31 Dec 2020 10:10:56 GMT, Philippe Marschall < at> wrote:

> Implement three optimiztations for
> * Add a code path for heap buffers in Reader#read to use the backing array instead of allocating a new one.
> * Change the code path for direct buffers in Reader#read to limit the intermediate allocation to `TRANSFER_BUFFER_SIZE`.
> * Implement `InputStreamReader#read(CharBuffer)` and delegate to `StreamDecoder`.
> * Implement `StreamDecoder#read(CharBuffer)` and avoid buffer allocation.

This pull request has now been integrated.

Changeset: 65c19c40
Author:    Philippe Marschall <philippe.marschall at>
Committer: Brian Burkhalter <bpb at>
Stats:     371 lines in 6 files changed: 361 ins; 0 del; 10 mod

4926314: Optimize

Reviewed-by: alanb, bpb



More information about the core-libs-dev mailing list