pub struct CompactStats {
pub tiles_read: usize,
pub tiles_written: usize,
pub tiles_deduplicated: usize,
pub bytes_before: usize,
pub bytes_after: usize,
pub reduction_pct: f64,
}Expand description
Quantitative summary of a single compaction run.
Fields§
§tiles_read: usizeNumber of logical tiles read from the source archive (after run-length
expansion). Equals PmTilesReader::enumerate_tiles length.
tiles_written: usizeNumber of tiles dispatched to the builder. When deduplication is
enabled, tiles whose content was already seen are still dispatched
(the builder deduplicates the physical payload) but are counted under
tiles_deduplicated.
tiles_deduplicated: usizeNumber of tiles whose byte content was identical to a previously-seen
tile. Only meaningful when CompactOptions::deduplicate is true;
otherwise always 0.
bytes_before: usizeTotal byte length of the source archive.
bytes_after: usizeTotal byte length of the compacted output archive.
reduction_pct: f64Percentage reduction in archive size:
(bytes_before - bytes_after) / bytes_before * 100.0.
Returns 0.0 when bytes_before == 0.
Trait Implementations§
Source§impl Clone for CompactStats
impl Clone for CompactStats
Source§fn clone(&self) -> CompactStats
fn clone(&self) -> CompactStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more