speedup git shallow cloning: Enable gix/max-performance (#1186)

for targets:
 - x86_64-apple-darwin
 - aarch64-apple-darwin
 - x86_64-unknown-linux-gnu
 - x86_64-unknown-linux-musl

which will use `zlib-ng` to speedup decompression and use assembly
version for sha1 checksum calculation on supported CPU.

Also enable feature `zlib-ng` on windows and
 - aarch64-unknown-linux-gnu
 - aarch64-unknown-linux-musl

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-07-10 16:18:15 +10:00 committed by GitHub
parent 7dea40a99a
commit 9d4694219b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 2 deletions

View file

@ -52,6 +52,7 @@ windows = { version = "0.48.0", features = ["Win32_Storage_FileSystem", "Win32_F
default = ["static", "rustls", "git"]
git = ["dep:gix"]
git-max-perf = ["gix?/max-performance"]
static = ["binstalk-downloader/static"]
pkg-config = ["binstalk-downloader/pkg-config"]