We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We really should specialize for extend with iterators that can be cloned. Possibly as an additional fn.
Let's check the speed of Extend w.r.t. growing.
Extend
Best to get a maximum of all elements, then grow once if needed.
impl<B: BitBlock> Extend<usize> for BitSet<B> { #[inline] fn extend<I: IntoIterator<Item = usize>>(&mut self, iter: I) { for i in iter { self.insert(i); } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We really should specialize for extend with iterators that can be cloned. Possibly as an additional fn.
Let's check the speed of
Extend
w.r.t. growing.Best to get a maximum of all elements, then grow once if needed.
The text was updated successfully, but these errors were encountered: