> Implement three optimiztations for Reader.read(CharBuffer)
> 
> * 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.

Philippe Marschall has updated the pull request incrementally with three 
additional commits since the last revision:

 - Fix bug in CharArrayReader and add unit test
 - Clean up unit tests
 - Revert off-heap code path

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1915/files
  - new: https://git.openjdk.java.net/jdk/pull/1915/files/fc29f3e6..5fa832b1

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1915&range=07
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1915&range=06-07

  Stats: 134 lines in 5 files changed: 100 ins; 19 del; 15 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1915.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1915/head:pull/1915

PR: https://git.openjdk.java.net/jdk/pull/1915

Reply via email to