From 48b7f171a7e15fa2e98e6df85da579c7ce0203ba Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 15 Aug 2026 15:33:43 -0700 Subject: [PATCH] release: speed up pushes by 9x (#38640) --- tools/release/build_release.sh | 3 ++- tools/release/build_stripped.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/release/build_release.sh b/tools/release/build_release.sh index 6657962ade..4cca754a08 100755 --- a/tools/release/build_release.sh +++ b/tools/release/build_release.sh @@ -94,6 +94,7 @@ REFS=() for branch in ${RELEASE_BRANCH//,/ }; do REFS+=("$BUILD_BRANCH:$branch") done -git push -f origin "${REFS[@]}" +# uploading the larger pack is faster than spending CPU to optimize it +git -c pack.window=0 -c pack.depth=0 -c pack.compression=0 push -f origin "${REFS[@]}" echo "[-] done T=$SECONDS" diff --git a/tools/release/build_stripped.sh b/tools/release/build_stripped.sh index 0e957c9212..6c1ba4e097 100755 --- a/tools/release/build_stripped.sh +++ b/tools/release/build_stripped.sh @@ -83,7 +83,8 @@ fi if [ ! -z "$BRANCH" ]; then echo "[-] Pushing to $BRANCH T=$SECONDS" - git push -f origin tmp:$BRANCH + # uploading the larger pack is faster than spending CPU to optimize it + git -c pack.window=0 -c pack.depth=0 -c pack.compression=0 push -f origin tmp:$BRANCH fi echo "[-] done T=$SECONDS, ready at $TARGET_DIR"