apple / apple/swift-openapi-generator
Adopt ISO8601FormatStyle on newer platforms
Open
area/runtime
kind/feature
size/S
- Dominant language
- Swift
- Stars
- 2k
- Forks
- 182
- Avg merge
- 13h 28m
- Merged PRs (30d)
- 5
Description
### Motivation
ISO8601FormatStyle is significantly faster than ISO8601DateFormatter.
### Proposed solution
Use #available to dynamically use the faster and more modern implementation in ISO8601FormatStyle, fall back to ISO8601DateFormatter otherwise (today's behavior).
We should also add benchmarks to the runtime package while we're there to measure the improvement.
### Alternatives considered
_No response_
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.