Skip to content

Conversation

@andrewheard
Copy link
Contributor

Replaced computed properties with stored type properties (static let) in the structs conforming to ProtoEnum. Minor optimization - no change to the public API surface.

Interesting bit from the Swift documentation:

Stored type properties are lazily initialized on their first access. They’re guaranteed to be initialized only once, even when accessed by multiple threads simultaneously, and they don’t need to be marked with the lazy modifier.

#no-changelog

@andrewheard andrewheard marked this pull request as ready for review October 10, 2024 15:50
@andrewheard andrewheard merged commit 02025ce into main Oct 10, 2024
38 checks passed
@andrewheard andrewheard deleted the ah/vertex-protoenum-lets branch October 10, 2024 15:50
MojtabaHs pushed a commit to MojtabaHs/firebase-ios-sdk that referenced this pull request Oct 17, 2024
@firebase firebase locked and limited conversation to collaborators Nov 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants