Skip to content

Conversation

@parkera
Copy link
Contributor

@parkera parkera commented Apr 14, 2023

The bridging of a Swift Locale back into Objective-C (as _NSSwiftLocale, an NSLocale subclass) was creating a new instance each time. No need to do that -- we can cache them, especially for the autoupdatingCurrent instance.

@parkera parkera requested review from iCharlesHu and itingliu April 14, 2023 00:09
@parkera parkera merged commit 8c40aef into swiftlang:main Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants