zlib-ng vs libdeflate
DinosaurDad opened this issue · comments
Hi,
Absolutely love what you've done with sharp and libvips. Best of class!
I recently ran across libdeflate by ebiggers, and it has some impressive benchmarks. I'm not sure exactly how zlib-ng is used in this codebase, but was wondering if it's worth considering libdeflate in its place. Over all it is faster, with better compression, and lower memory consumption. You've demonstrated a consistent desire for tweaking speed in this project, so I figured it was worth asking.
Thank you, very kind.
The libdeflate README says:
libdeflate has a simple API that is not zlib-compatible
so it probably won't help us as everything using it requires that compatibility.
The zlib-ng maintainers are aware of libdeflate and have already made similar improvements - see zlib-ng/zlib-ng#1486
Fair enough. Thanks!