Optimization: turn calls to UIDevice.CheckSystemVersion to a constant true value
Open
app-size
enhancement
iOS
macOS
performance
- Dominant language
- C#
- Stars
- 2.9k
- Forks
- 576
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 123
Description
An idea for a possible optimization in the linker:
Turn calls to UIKit.UIDevice.CurrentDevice.CheckSystemVersion (and the equivalent for macOS) to a constant true value, when a look at the deployment target proves it can never be false.
This will make such scenarios execute somewhat faster, and together with the dead code elimination optimization this should decrease app size somewhat too.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.