RFR: 4926314: Optimize Reader.read(CharBuffer) [v7]

Philippe Marschall github.com+471021+marschall at openjdk.java.net
Sat Mar 13 14:33:08 UTC 2021


On Fri, 19 Feb 2021 07:34:57 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> I think that's what @AlanBateman intended. The `skip()` changes would revert also (I think) but the C-style array changes can stay. Thanks.
>
> Yes, let's bring it back to just eliminating the intermediate array when the buffer has a backing array. The other case that been examined separated if needed but we can't use the approach proposed in the current PR because it changes the semantics of read when there is a short-read followed by a blocking or exception throwing read.

Done

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

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


More information about the nio-dev mailing list