RFR: 8355177: Speed up StringBuilder::append(char[]) via Unsafe::copyMemory [v8]
Shaojin Wen
swen at openjdk.org
Thu Jul 24 10:45:57 UTC 2025
On Tue, 22 Jul 2025 04:03:20 GMT, Chen Liang <liach at openjdk.org> wrote:
> I just noticed there is `LibraryCallKit::inline_string_getCharsU` that is for byte -> char conversion. I wonder if we can slightly update it for char -> byte conversion.
If the performance is the same, the current proposal to use Unsafe should be more maintainable, and the maintainer only needs to know Java. If intrinsics are used, the maintainer needs to know C++, Java, and intrinsic mechanisms.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24773#issuecomment-3112974656
More information about the core-libs-dev
mailing list