From patchwork Tue Nov 8 07:14:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 16890 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2536216wru; Mon, 7 Nov 2022 23:15:40 -0800 (PST) X-Google-Smtp-Source: AMsMyM4rCRxsKuwddLW4DNJVjpHmD2tWojm5TJSORFVY2/XTFrW1nNr0LRFH5TJy0MYowE6CM8vD X-Received: by 2002:a17:907:62a1:b0:781:b320:90c0 with SMTP id nd33-20020a17090762a100b00781b32090c0mr49123613ejc.255.1667891740821; Mon, 07 Nov 2022 23:15:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667891740; cv=none; d=google.com; s=arc-20160816; b=wasp4mBMj8mZvjef+h2QEVXILNja2n0z9+Y6ungoF9E+s6x+Y82ilsMfdk2zrV8eMi R7NADNx8Lxp4OWSY3Y8hcIscakHccE6VjfodDhMCrez/X8K7C/V6iHP4k6+Vjl04uAGx lpA8Ua4iExGSMjJUBVonPYlypaTe/lc4nC/UDnLd5lf/OokEcSKjZ2vGRk0SOOiiN7yv 9TxTLukOmqpug/9UCACv/bYzRqDvKrL7REVTerzY5qloLsMA+8suFzyJruwPp4S8shFE jQlpvbuTMxodtuNoeg10uL8Z2JW3S4/mAKMMjcsVuuDbG0Kic17HmIq0QsHpAyxM9gdC xxdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=NhnbRDDJ54WpC7o6qtCbvwXM8osjIButhOmgmdRqJfI=; b=pBe2W1MCSCNHMNnCOmbIXsbyG/kBtNB5zROX70QNzd9npO6gnz2iuXh3TiaazP9COg UGS62uoQj/zvas5QgsFFXzRk8ajJShr6W3Cx0RaVZFnaMIoALBu97E/FkBHSLuUGvhjj Z5j80rdeFTNr+fxEPPMN1/UG4h5hO6iJCK2N0dm42b651MeoUNTYallWx46EaQMmq8Wm 2wuSyZ/6HMC/gSVpMT1F70fYHf+CwUhHuZ5+3ZMWhfUbf6JNV2Mu9vj27jiFq7x050vI VZUDO+MZXQ2ap90X2sHgrMV8VSwd+Q4mXrIviRjHnKq1zgnp05NQak/k3OytTvzX8siq ZITQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="xA/NaN05"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dn10-20020a17090794ca00b007a45e4f4ff0si12805651ejc.885.2022.11.07.23.15.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 23:15:40 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="xA/NaN05"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D1C3B385841D for ; Tue, 8 Nov 2022 07:15:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1C3B385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667891739; bh=NhnbRDDJ54WpC7o6qtCbvwXM8osjIButhOmgmdRqJfI=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=xA/NaN05z6f1j8I83fC/SEOYPSYC257JEnweG8wYeFKfhEUroCgpkRRCHU6b1BNBP nS0srnyQeUnIjtu+RuqJmQVRI7EqrneE7zt5x/rXiT2Neorlo6W3WHizLMoJosZaqH yahi98mA3Aozf6tFOIkL6ZPxgUe5/PNWUmEbW+qY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 39AD73858D20 for ; Tue, 8 Nov 2022 07:14:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 39AD73858D20 To: gcc-patches@gcc.gnu.org Cc: Gerald Pfeifer , Jakub Jelinek , Jeff Law , Sam James Subject: [PATCH] maintainer-scripts/gcc_release: compress xz in parallel Date: Tue, 8 Nov 2022 07:14:38 +0000 Message-Id: <20221108071438.2523863-1-sam@gentoo.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sam James via Gcc-patches From: Sam James Reply-To: Sam James Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748911249890722527?= X-GMAIL-MSGID: =?utf-8?q?1748911249890722527?= 1. This should speed up decompression for folks, as parallel xz creates a different archive which can be decompressed in parallel. Note that this different method is enabled by default in a new xz release coming shortly anyway (>= 5.3.3_alpha1). I build GCC regularly from the weekly snapshots and so the decompression time adds up. 2. It should speed up compression on the webserver a bit. Note that -T0 won't be the default in the new xz release, only the parallel compression mode (which enables parallel decompression). -T0 detects the number of cores available. So, if a different number of threads is preferred, it's fine to set e.g. -T2, etc. Signed-off-by: Sam James --- maintainer-scripts/gcc_release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 2456908d716..962b8efe99a 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -609,7 +609,7 @@ FILE_LIST="" # Programs we use. BZIP2="${BZIP2:-bzip2}" -XZ="${XZ:-xz --best}" +XZ="${XZ:-xz -T0 --best}" CVS="${CVS:-cvs -f -Q -z9}" DIFF="${DIFF:-diff -Nrcpad}" ENV="${ENV:-env}"