RFR: 8349176: Speed up Integer/Long.toString via Unsafe.allocateUninitializedArray

Shaojin Wen swen at openjdk.org
Sun Mar 9 15:43:01 UTC 2025


On Wed, 29 Jan 2025 16:36:24 GMT, Shaojin Wen <swen at openjdk.org> wrote:

> The byte[] allocated in Integer/Long.toString is fully filled, so we can use Unsafe.allocateUninitializedArray to create byte[] to improve performance.

Keep it alive.

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

PR Comment: https://git.openjdk.org/jdk/pull/23353#issuecomment-2708921634


More information about the core-libs-dev mailing list