Skip to content

Adopt ISO8601FormatStyle on newer platforms #637

Open
@czechboy0

Description

@czechboy0

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

Metadata

Metadata

Assignees

Labels

area/runtimeAffects: the runtime library.kind/featureNew feature.size/SSmall task. (A couple of hours of work.)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions