Skip to content

Conversation

jvz
Copy link
Member

@jvz jvz commented Jul 29, 2025

This PR improves #3139, by introducing a new InstantPatternFormatter for patterns of the form "ss.S{n}". Unlike the previous formatter based on DateTimeFormatter, the formatter is garbage-free.

We also simplify the merging algorithm for pattern formatter factories, by moving the merging logic to the pattern formatter factories themselves.

This PR does not contain a separate change log entry, since #3139 has not been published yet.

Fixes #3337.


Port of #3338.

@jvz jvz added this to the 3.0.0-beta4 milestone Jul 29, 2025
@jvz jvz added the performance Issues or PRs that affect performance, throughput, latency, etc. label Jul 29, 2025
This PR improves #3139, by introducing a new `InstantPatternFormatter` for patterns of the form "ss\.S{n}". Unlike the previous formatter based on `DateTimeFormatter`, the formatter is garbage-free.

We also simplify the merging algorithm for pattern formatter factories, by moving the merging logic to the pattern formatter factories themselves.

This PR does not contain a separate change log entry, since #3139 has not been published yet.

Fixes #3337.

Co-authored-by: Volkan Yazıcı <[email protected]>
@jvz jvz force-pushed the feature/3.x/port-3338 branch from 3a91665 to 15ec789 Compare July 29, 2025 21:46
@jvz jvz merged commit ebfc571 into main Jul 31, 2025
11 checks passed
@jvz jvz deleted the feature/3.x/port-3338 branch July 31, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Issues or PRs that affect performance, throughput, latency, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants