-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
featureA feature request or implementationA feature request or implementationtriage neededThis issue needs more specific labelsThis issue needs more specific labels
Description
Motivation
I'm benchmarking and profiling my package, and apparently 35% of the time is spent in __isPlatformVersionAtLeast
.
I have a bunch of #available(swiftIDNAApplePlatforms 26, *)
/ #available(swiftIDNAApplePlatforms 13, *)
s in the code.
These are defined as:
.enableExperimentalFeature(
"AvailabilityMacro=swiftIDNAApplePlatforms 26:macOS 26, iOS 26, tvOS 26, watchOS 26, visionOS 26"
),
.enableExperimentalFeature(
"AvailabilityMacro=swiftIDNAApplePlatforms 13:macOS 13, iOS 16, tvOS 16, watchOS 9"
),
Proposed solution
Sounds to me implementing some caching mechanism can solve the issue?
Alternatives considered
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
featureA feature request or implementationA feature request or implementationtriage neededThis issue needs more specific labelsThis issue needs more specific labels