Withdrawn: 8316235: Optimization for DateTimeFormatter::format

duke duke at openjdk.org
Sun Nov 12 03:07:13 UTC 2023


On Wed, 13 Sep 2023 14:56:15 GMT, Shaojin Wen <duke at openjdk.org> wrote:

> In many scenarios, DateTimeFormatter::format is a slower operation.  
> 
> For example, the following business scenarios
> 1. The json library gson/jackson/[fastjson2](https://github.com/alibaba/fastjson2) formats Instant/LocalDate/LocalTime/LocalDateTime/ZonedDateTim into strings.
> 2. In data integration scenarios, for projects like  [datax](https://github.com/alibaba/datax)/[canal](https://github.com/alibaba/canal), if the input type is Date/Instant and the output type is String, formatting is required.
> 
> This PR provides format performance optimization for commonly used date patterns.
> 
> ISO_INSTANT
> ISO_LOCAL_TIME
> ISO_LOCAL_DATE
> ISO_LOCAL_DATETIME
> HH:mm:ss
> HH:mm:ss.SSS
> yyyy-MM-dd
> yyyy-MM-dd HH:mm:ss
> yyyy-MM-dd'T'HH:mm:ss
> yyyy-MM-dd HH:mm:ss.SSS
> yyyy-MM-dd'T'HH:mm:ss.SSS

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jdk/pull/15722


More information about the core-libs-dev mailing list