apple / apple/swift-openapi-generator

Adopt ISO8601FormatStyle on newer platforms

Open
#637 8 comments 1 reaction 1 assignee Claimed by @arthurcro View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.