RFR: 8361209: (bf) Use CharSequence::getChars for StringCharBuffer bulk get methods [v5]

Roger Riggs rriggs at openjdk.org
Thu Jul 17 14:04:50 UTC 2025


On Wed, 16 Jul 2025 23:23:30 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> For `CharBuffer`s created from a `CharSequence`, use `CharSequence.getChars` to perform bulk gets instead of successively copying single characters.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8361209: Fix assertion added in previous commit

Looks good; nice performance improvement!

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

Marked as reviewed by rriggs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26251#pullrequestreview-3029679559


More information about the nio-dev mailing list