-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[vector.bool] Optimize copy / move algorithms #3353
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
f28e518
to
c849d8a
Compare
c849d8a
to
f413538
Compare
benchmarks/src/std/containers/sequences/vector.bool/move/test.cpp
Outdated
Show resolved
Hide resolved
benchmarks/src/std/containers/sequences/vector.bool/move/test.cpp
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
benchmarks/src/std/containers/sequences/vector.bool/copy/test.cpp
Outdated
Show resolved
Hide resolved
benchmarks/src/std/containers/sequences/vector.bool/copy/test.cpp
Outdated
Show resolved
Hide resolved
benchmarks/src/std/containers/sequences/vector.bool/copy/test.cpp
Outdated
Show resolved
Hide resolved
benchmarks/src/std/containers/sequences/vector.bool/copy/test.cpp
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
This has passed a billion iterations ( |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for contributing this major optimization, enduring the almost 2 years it took to review (since the creation of #2461), and finding the time to fix the correctness issues! 👻 🚀 🎉 |
I reran the perf numbers and described the speedups in the changelog as varying from 1.8x to 3200x (of course this was only on my machine but the perf numbers are approximate anyways). |
This is a revival of my old PR that optimized the copy / move algorithms
Unfortunately I did not have that much time recently, so here it is finally. The speedup is rather nice and grows well with the size of the array
Results_vec_bool.xlsx