<i18n dev> RFR: 8337279: Optimize format instant
Shaojin Wen
duke at openjdk.org
Fri Jul 26 14:29:45 UTC 2024
On Fri, 26 Jul 2024 14:20:07 GMT, Shaojin Wen <duke at openjdk.org> wrote:
> By removing the redundant code logic in DateTimeFormatterBuilder$InstantPrinterParser#formatTo, the codeSize can be reduced and the performance can be improved.
By removing redundant code logic, the codeSize can be reduced from 444 to 240, and the performance is improved.
Below are the performance numbers running on MacBook M1 Pro
-# master 5ff7c57f9ff5428ef3d2aedd7e860bb1e8ff29ea
-Benchmark Mode Cnt Score Error Units
-ToStringBench.instantToString thrpt 15 4.734 ? 0.547 ops/ms +24.10%
+# current baf0f9ca83c111401d6e034dfba0ee2c71280e62
+Benchmark Mode Cnt Score Error Units
+ToStringBench.instantToString thrpt 15 5.875 ? 0.301 ops/ms
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20353#issuecomment-2252885851
More information about the i18n-dev
mailing list