RFR: 8315999: Improve Date toString performance [v13]

温绍锦 duke at openjdk.org
Wed Sep 13 22:37:46 UTC 2023


On Wed, 13 Sep 2023 21:22:43 GMT, 温绍锦 <duke at openjdk.org> wrote:

> Based on the use cases cited, if your library needs specific performance improvements for specific formats, they should be done in that library.

Not only JSON libraries, toString optimization of Date/Instant/LocalDateTime and other classes will benefit in many places, such as logging in business systems, etc.


Instant bizTime = ...;
LOG.log(Level.INFO, "bizDate {0}", bizTime);

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

PR Comment: https://git.openjdk.org/jdk/pull/15658#issuecomment-1718401009



More information about the security-dev mailing list