Integrated: 8337168: Optimize LocalDateTime.toString

Shaojin Wen duke at openjdk.org
Fri Jul 26 12:13:40 UTC 2024


On Thu, 25 Jul 2024 05:06:17 GMT, Shaojin Wen <duke at openjdk.org> wrote:

> The current LocalDateTime.toString implementation concatenates the toString results of date and time, which can be passed to StringBuilder to reduce additional object allocation and improve performance.

This pull request has now been integrated.

Changeset: 5ff7c57f
Author:    Shaojin Wen <shaojin.wensj at alibaba-inc.com>
URL:       https://git.openjdk.org/jdk/commit/5ff7c57f9ff5428ef3d2aedd7e860bb1e8ff29ea
Stats:     33 lines in 3 files changed: 23 ins; 3 del; 7 mod

8337168: Optimize LocalDateTime.toString

Reviewed-by: liach, naoto

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

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


More information about the core-libs-dev mailing list