-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix cloning from a BitSet with a different domain size #99052
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
The previous implementation incorrectly assumed that the number of words in a bit set is equal to the domain size. The new implementation delegates to `Vec::clone_from` which is specialized for `Copy` elements.
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
@bors r+ rollup=never |
☀️ Test successful - checks-actions |
Finished benchmarking commit (34805f3): comparison url. Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
The previous implementation incorrectly assumed that the
number of words in a bit set is equal to the domain size.
The new implementation delegates to
Vec::clone_from
whichis specialized for
Copy
elements.Fixes #99006.