You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #5070 I restored the Windows behavior for converting between Windows and Olson timezone identifiers. This conversion currently performs a linear search through a list of identifiers to find a matching pair and return the result. We could be more efficient here by pre-sorting the list and performing a binary search or sorting based on a pre-computed hash to mimic a constant-dictionary for constant time lookup.
In #5070 I restored the Windows behavior for converting between Windows and Olson timezone identifiers. This conversion currently performs a linear search through a list of identifiers to find a matching pair and return the result. We could be more efficient here by pre-sorting the list and performing a binary search or sorting based on a pre-computed hash to mimic a constant-dictionary for constant time lookup.
https://github.com/apple/swift-corelibs-foundation/blob/e0f1615328571f9a27d4bb55efb0e1e57e2ea941/Sources/CoreFoundation/CFTimeZone_WindowsMapping.c#L529-L542
The text was updated successfully, but these errors were encountered: