/// Estimate the memory consumption of this object and its contents
Estimate the memory consumption of this object and its contents
Estimate the memory consumption of this object and its contents
fn size(&self) -> usize {
        // simplify accounting by ensuring len and capacity of vector are the same
        assert_eq!(self.files.len(), self.files.capacity());
        // Note size_of_val is the size of the Azrc
        // https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ae8fee8b4f7f5f013dc01ea1fda165da
        // size of the Arc itself
        mem::size_of_val(self) +
        // Vec overhead
            mem::size_of_val(self.files.as_ref()) +
        // size of the underlying decoded parquet files
            self.files.iter().map(|f| f.size()).sum::<usize>()
    }
fn size ( & self ) -> usize { // simplify accounting by ensuring len and capacity of vector are the same assert_eq ! ( self files len ( ) self files capacity ( ) ) ; // Note size_of_val is the size of the Azrc // https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ae8fee8b4f7f5f013dc01ea1fda165da // size of the Arc itself mem :: size_of_val ( self ) + // Vec overhead mem :: size_of_val ( self . files . as_ref ( ) ) + // size of the underlying decoded parquet files self . files . iter ( ) . map ( | f | f . size ( ) ) . sum :: < usize > ( ) }
Estimate the memory consumption of this object and its contents
Estimate the memory consumption of this object and its contents
&self