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
IndexPath has poor performance when bridging from objc and bridges too often for compare.
public func compare(_ other: IndexPath) -> ComparisonResult incurs two bridges out to objc which would potentially allocate two NSIndexSets; this is not needed and can be done strictly in swift; which avoids allocations to compare.
fileprivate init(nsIndexPath: ReferenceType) calls malloc to fetch indices from the NSIndexSet reference. This can be done via Array which in common cases is faster.
This applies to the Darwin overlay.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 4c93a9dfe9392c05e2a23aead5759595
Issue Description:
IndexPath has poor performance when bridging from objc and bridges too often for compare.
public func compare(_ other: IndexPath) -> ComparisonResult incurs two bridges out to objc which would potentially allocate two NSIndexSets; this is not needed and can be done strictly in swift; which avoids allocations to compare.
fileprivate init(nsIndexPath: ReferenceType) calls malloc to fetch indices from the NSIndexSet reference. This can be done via Array which in common cases is faster.
This applies to the Darwin overlay.
The text was updated successfully, but these errors were encountered: