Withdrawn: 8349189: Speed up DateTime parse & format via Class File API
duke
duke at openjdk.org
Sun May 4 19:45:56 UTC 2025
On Fri, 31 Jan 2025 10:29:53 GMT, Shaojin Wen <swen at openjdk.org> wrote:
> By using the Class File API to dynamically generate a CompositePrinterParser, and defining DateTimePrinterParser[] printerParsers as a specific field, C2 can do TypeProfile optimization.
>
> Since the CompositePrinterParser is generated based on the pattern, we can make the following optimizations:
>
> 1. For example, for the parse and print of Month/DayOfMonth/Hour/Minute/Second with a fixed length of 2, do targeted parse and print optimization.
>
> 2. Parse uses LocalDate/LocalTime/LocalDateTime/OffsetDateTime for TemporalQuery to avoid the overhead of constructing DateTimeParseContext.
>
> These optimizations can significantly improve performance, with more than 100% performance improvement in many scenarios.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk/pull/23384
More information about the core-libs-dev
mailing list