RFR: 8315999: Improve Date toString performance [v9]

Claes Redestad redestad at openjdk.org
Tue Sep 12 22:56:49 UTC 2023


On Mon, 11 Sep 2023 16:13:01 GMT, 温绍锦 <duke at openjdk.org> wrote:

>> It was a suggestion, implicitly paired with removing ` + (year < 0 ? 1 : 0)` from line 2188.
>
> The reason for not using off++ is that it can be executed out of order, which may result in better performance.

I don't think that would outweigh the extra branch and the increased code size. I'd opt for simplicity.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15658#discussion_r1323687644



More information about the security-dev mailing list