Skip to content

zlib-ng comp level 5 - #875

Merged
Firefishy merged 1 commit into
openstreetmap:masterfrom
leijurv:level-5
Oct 15, 2026
Merged

Firefishy merged 1 commit into
openstreetmap:masterfrom
leijurv:level-5

Conversation

@leijurv

@leijurv leijurv commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Sorry, I was just about to add this to #874 literally moments before it was merged 🙏

I suggest also changing the compression level from 6 to 5. This makes the tiles slightly bigger, but, still smaller than it was with zlib (i.e. prior to #874). Rather than a 2% decrease, it's looking more like a 1.56% decrease. However, it's still worth it for two reasons. 1. it delivers an additional ~3% speedup to mapnik CPU time, taking the total win from both PRs to 8.7% on x86 and 11.4% on arm. And 2. it has a combined benefit when combined with a PR I have just made to mapnik: mapnik/mapnik#4593. If both of these PRs are merged, the win increases further to -2.25% smaller tiles, in particular because of this commit which writes the PNG rows in larger chunks which allows zlib-ng to compress even better leijurv/mapnik@2b269ea

@Firefishy
Firefishy merged commit 47de4dc into openstreetmap:master Oct 15, 2026
118 of 124 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants