RFR: 8283681: Improve ZonedDateTime offset handling [v2]
Claes Redestad
redestad at openjdk.java.net
Fri Mar 25 14:35:47 UTC 2022
On Fri, 25 Mar 2022 12:33:21 GMT, Richard Startin <duke at openjdk.java.net> wrote:
>> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add nanoOfSecond parameter, make micro less reliant on constants
>
> test/micro/org/openjdk/bench/java/time/GetYearBench.java line 70:
>
>> 68: private static final long[] INSTANT_MILLIS = createInstants();
>> 69:
>> 70: private static final int[] YEARS = new int[INSTANT_MILLIS.length];
>
> Does it make any difference if these aren't constant?
Interestingly a slight increase in the measured gain (14% -> 25%). I think we should favor non-constant data to subdue irrelevant JIT shenanigans so I pushed the changes.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7957
More information about the core-libs-dev
mailing list