library:map: record that a lower deflate level buys nothing here
- Commit
4d2b6042866755aa4a9c6daf069320192e353f3b- Author
- vayun-mathur <[email protected]>
- When
- 2026-08-28 16:05 UTC (3 months ago)
- Parents
43e38c4
Diff
library/tilecodec/src/main/rust/src/mamaps/write.rs
diff --git a/library/tilecodec/src/main/rust/src/mamaps/write.rs b/library/tilecodec/src/main/rust/src/mamaps/write.rsindex 7106a92676..cfa75e895d 100644--- a/library/tilecodec/src/main/rust/src/mamaps/write.rs+++ b/library/tilecodec/src/main/rust/src/mamaps/write.rs@@ -67,7 +67,14 @@ use crate::stream::OPEN_PREFIX_BYTES; /// Leaf entries per leaf to start with, matching what the published PMTiles archive uses. pub const DEFAULT_LEAF_CAPACITY: u32 = 4096; -/// DEFLATE level. Nine, as `gz.rs` uses, because a basemap is written once and read forever.+/// DEFLATE level.+///+/// Nine, as `gz.rs` uses, because a basemap is written once and read forever.+///+/// Six was tried, on the theory that `encode`'s 43.9 s of a 135.8 s California build was mostly+/// compression. It is not: level six measured 44.8 s — inside the noise — for 0.12% more bytes. The+/// cost in that phase is stage C and body serialisation, not the deflate, so there is nothing here to+/// trade and the better ratio is free. Worth recording so nobody re-runs the experiment. const LEVEL: u8 = 9; /// What a build declares about itself before the first tile.