Skip to main content

Module diff

Module diff 

Source
Expand description

Tileset-to-tileset comparison for stt-optimize diff: totals, per-zoom directory stats, and per-column costs between two InspectReports (typically before/after a re-encode or fleet reprocess), each as absolute and percent deltas.

Directory-derived numbers (tile/blob counts, wire bytes) are exact on both sides; per-column numbers inherit whatever sampling the two inspections ran with (DiffReport::decode_sampled flags this), so treat them as attribution shifts, not absolute wire accounting.

Structs§

ColumnDiff
Per-column cost comparison (matched by column name). A column present on only one side is flagged via only_in and diffed against zeros.
Delta
Absolute + percent change of an integer counter.
DeltaF
Absolute + percent change of a float metric (ratios, per-feature bytes).
DiffReport
Full comparison of two inspected tilesets.
ZoomDiff
Per-zoom directory comparison. A zoom present on only one side is flagged via only_in and diffed against zeros.

Enums§

Side
Which side of the comparison a one-sided row exists on.

Functions§

diff
Compare two inspection reports (beforeafter).
format_text
Render the diff as compact aligned text.