-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should support alternative implementations of zlib #63
Comments
Indeed, would you accept repointing of the submodule to this implementation instead?: https://blog.cloudflare.com/cloudflare-fights-cancer/ I think this would speed up a few crates that use |
For now I'll try to use this crate: https://crates.io/crates/cloudflare-zlib-sys |
@brainstorm Not "repointing", no; cloudflare's zlib has portability issues. It also isn't the highest performance; see GitoxideLabs/gitoxide#1 (comment) for some informal benchmarks. |
Super interesting, thanks for sharing the benchmarks! I'll try to carve some time to give |
@brainstorm It should work fine on musl. Please give it a try and let me know if it works. |
@brainstorm Currently fixing some issues; new version shortly, which I've now confirmed works on musl (and which will test musl in CI). |
Done and released in libz-sys 1.1.0. |
https://github.com/rust-bio/rust-htslib/pull/237/checks?check_run_id=1024717376#step:7:1962 Will investigate on rust-bio/rust-htslib's PR. |
@brainstorm Ah, interesting. Yeah, that assert isn't valid with an alternate zlib implementation; |
* Switch zlib implementation to zlib-ng, see rust-lang/libz-sys#63 for context * Bump to release 1.13 * Bump to htslib version 1.13+htscodecs and curl-sys version, build fails * fix build.rs for htslib changes * fmt, use recursive submodule checkout on GH Actions Co-authored-by: Roman Valls Guimera <[email protected]>
libz-sys
should have a feature to use an alternative zlib implementation, such aszlib-ng
. That would reduce the problem such alternative implementations currently have, of potentially ending up with two conflicting versions of zlib in the same binary. (This could still happen if linking to a system library that links to zlib, though.)The text was updated successfully, but these errors were encountered: