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
SortedSet could benefit from providing _customContainsEquatableElement and _customIndexOfEquatableElement instead of contains(_:) and index(of:), so that it will still have good performance in a generic context.
I try very hard not to use any underscored API from stdlib — they are private implementation detail that stdlib engineers can (and do) change at whim. On the other hand, the forbidden fruit looks so sweet; I miss out on a lot of optimization opportunities by taking the high road. :-(
Perhaps these could be added hidden behind an optional conditional compilation switch that is disabled by default. (-DTurbo?)
2 commit comments
natecook1000 commentedon Sep 24, 2016
Nice 👍
SortedSet
could benefit from providing_customContainsEquatableElement
and_customIndexOfEquatableElement
instead ofcontains(_:)
andindex(of:)
, so that it will still have good performance in a generic context.lorentey commentedon Sep 25, 2016
I try very hard not to use any underscored API from stdlib — they are private implementation detail that stdlib engineers can (and do) change at whim. On the other hand, the forbidden fruit looks so sweet; I miss out on a lot of optimization opportunities by taking the high road. :-(
Perhaps these could be added hidden behind an optional conditional compilation switch that is disabled by default. (
-DTurbo
?)