Skip to content

Add to-do for Stride* implementation of _customContainsEquatableElement #39908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

xwu
Copy link
Collaborator

@xwu xwu commented Oct 25, 2021

A follow-up to #39903 (see discussion in that PR), to remind ourselves that _customContainsEquatableElement has been implemented for Stride* types in a way that always falls back to the predicate version of contains when the element being tested lies between _start and _end.

Future work may identify other scenarios that benefit (performance-wise) from being quickly ruled in or out within this function rather than falling back.

@xwu
Copy link
Collaborator Author

xwu commented Oct 25, 2021

@swift-ci please smoke test and merge

@xwu
Copy link
Collaborator Author

xwu commented Oct 25, 2021

/cc @stephentyrone

@stephentyrone
Copy link
Contributor

Thanks Xiaodi!

@xwu
Copy link
Collaborator Author

xwu commented Oct 25, 2021

@swift-ci please smoke test and merge

@xwu
Copy link
Collaborator Author

xwu commented Oct 25, 2021

@swift-ci please smoke test macOS platform

@xwu xwu merged commit 3927e78 into swiftlang:main Oct 26, 2021
@xwu xwu deleted the stride-custom-contains-note branch October 26, 2021 01:00
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.

2 participants