Integrated: 8353741: Eliminate table lookup in UUID.toString

Shaojin Wen swen at openjdk.org
Thu May 22 23:37:59 UTC 2025


On Mon, 6 Jan 2025 13:18:50 GMT, Shaojin Wen <swen at openjdk.org> wrote:

> Improve the performance of UUID::toString by using Long.expand and SWAR (SIMD within a register) instead of table lookup. Eliminating the table lookup can also avoid the performance degradation problem when the cache misses.

This pull request has now been integrated.

Changeset: 796ec5e7
Author:    Shaojin Wen <swen at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/796ec5e7cfcfb20d76a3b48c0b369dc73250f7e4
Stats:     118 lines in 2 files changed: 87 ins; 27 del; 4 mod

8353741: Eliminate table lookup in UUID.toString

Reviewed-by: rriggs

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

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


More information about the core-libs-dev mailing list