Skip to content

Allow using zlib-rs for more than 2x speedup and improved memory safety#29

Open
Shnatsel wants to merge 2 commits intobvibber:mainfrom
Shnatsel:zlib-rs
Open

Allow using zlib-rs for more than 2x speedup and improved memory safety#29
Shnatsel wants to merge 2 commits intobvibber:mainfrom
Shnatsel:zlib-rs

Conversation

@Shnatsel
Copy link

@Shnatsel Shnatsel commented Dec 5, 2024

Switches over to zlib-rs by default. On my machine this improves the reported time by mtpng CLI from 128ms to 55ms on this image: https://commons.wikimedia.org/wiki/File:Diagram_Integrasi_Transportasi_Publik_Semarang.png

Allows selecting plain old zlib via Cargo features just in case it's needed for some sort of C program linking not to blow up. I don't actually know if they will blow up or not, so I decided to err on the side of caution.

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.

1 participant