-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Add custom implementations of removeLast and remove(at:) to Array #14212
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
Conversation
@swift-ci please test |
@swift-ci please smoke benchmark |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please smoke benchmark |
Benchmarks don't seem to be able to run at the moment. But local benchmarking on my machine suggests this is a win for some use cases. I'm going to merge, and then add some more benchmarks and measure perf using a revert when they're up again. |
Also seems to help code size a little bit. |
It looks like the implementation isn't actually correct; it's failing under optimization. Reverting for now. |
…at:) to Array (swiftlang#14212)" This reverts commit 5ed4afe. It doesn't appear to be correct when the client is compiled with optimizations (as in, there's a failing bot).
Build comment file:Build failed before running benchmark. |
These currently use
replaceRange
which is way to big to inline. Let's see if these are faster. Not sure if this is covered by benchmarks though.