Fix larger than necessary allocations in streamer (#8187)

This commit is contained in:
carllin
2020-02-10 11:49:07 -08:00
committed by GitHub
parent 84b3e12e1f
commit 0b263f8714
4 changed files with 43 additions and 10 deletions

View File

@ -151,6 +151,10 @@ impl<T: Clone + Default + Sized> PinnedVec<T> {
pub fn iter_mut(&mut self) -> PinnedIterMut<T> {
PinnedIterMut(self.x.iter_mut())
}
pub fn capacity(&self) -> usize {
self.x.capacity()
}
}
impl<'a, T: Clone + Send + Sync + Default + Sized> IntoParallelIterator for &'a PinnedVec<T> {