RFR: 8306374: (bf) Improve performance of DirectCharBuffer::append(CharSequence[,int,int]) [v2]

Brian Burkhalter bpb at openjdk.org
Wed Apr 19 16:25:54 UTC 2023


> Use `getChars()` to copy characters to an intermediate local `char[]` array and then `putArray()` to copy the chars into the buffer itself.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8306374: Add explicit bounds check; allocate less memory if possible

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13522/files
  - new: https://git.openjdk.org/jdk/pull/13522/files/c445060e..d81313a6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13522&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13522&range=00-01

  Stats: 6 lines in 1 file changed: 3 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/13522.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13522/head:pull/13522

PR: https://git.openjdk.org/jdk/pull/13522


More information about the nio-dev mailing list