pub struct LayoutAnalysis {
pub tile_count: usize,
pub unique_data_count: usize,
pub dedup_ratio: f64,
pub is_clustered: bool,
pub max_gap: u64,
pub mean_gap: f64,
}Expand description
Result of analysing a tile-ordering manifest.
Produced by analyze_tile_ordering and consumed by choose_strategy.
Fields§
§tile_count: usizeTotal number of tile entries analysed.
unique_data_count: usizeNumber of distinct data_offset values. Identical offsets indicate
deduplicated tiles that share a single payload, so this is a proxy for
the count of unique payloads.
dedup_ratio: f64Fraction of tiles that are deduplicated, in [0.0, 1.0).
Computed as 1.0 - unique_data_count / tile_count. 0.0 when every
tile is unique (or the manifest is empty).
is_clustered: booltrue when, taken in ascending tile_id order, the data offsets are
monotonically non-decreasing (i.e. the archive is clustered). Empty and
single-entry manifests are trivially clustered.
max_gap: u64Largest gap, in bytes, between the end of one tile’s payload and the
start of the next (in tile_id order). 0 when there are no positive
gaps or fewer than two entries.
mean_gap: f64Mean of all positive inter-tile gaps in bytes. 0.0 when there are no
positive gaps or fewer than two entries.
Trait Implementations§
Source§impl Clone for LayoutAnalysis
impl Clone for LayoutAnalysis
Source§fn clone(&self) -> LayoutAnalysis
fn clone(&self) -> LayoutAnalysis
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more