From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Ul8EMopvZGAkFQEAgWs5BA (envelope-from ) for ; Wed, 31 Mar 2021 14:48:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EODuKopvZGDRDAAAB5/wlQ (envelope-from ) for ; Wed, 31 Mar 2021 12:48:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6922820260 for ; Wed, 31 Mar 2021 14:48:10 +0200 (CEST) Received: from localhost ([::1]:51078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRaGX-0007fO-ET for larch@yhetil.org; Wed, 31 Mar 2021 08:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRaGQ-0007f4-6P for guix-patches@gnu.org; Wed, 31 Mar 2021 08:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRaGP-0004Xb-TJ for guix-patches@gnu.org; Wed, 31 Mar 2021 08:48:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRaGP-0001oW-Qn for guix-patches@gnu.org; Wed, 31 Mar 2021 08:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47251] [core-updates] [patch] gnu: python: Enable optimizations. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 31 Mar 2021 12:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47251 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Julien Lepiller Cc: 47251@debbugs.gnu.org Received: via spool by 47251-submit@debbugs.gnu.org id=B47251.16171948746958 (code B ref 47251); Wed, 31 Mar 2021 12:48:01 +0000 Received: (at 47251) by debbugs.gnu.org; 31 Mar 2021 12:47:54 +0000 Received: from localhost ([127.0.0.1]:53792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRaGI-0001oA-2W for submit@debbugs.gnu.org; Wed, 31 Mar 2021 08:47:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRaGG-0001ny-Uu for 47251@debbugs.gnu.org; Wed, 31 Mar 2021 08:47:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59048) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRaGA-0004Mi-IG; Wed, 31 Mar 2021 08:47:46 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60230 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lRaG9-0008HP-O2; Wed, 31 Mar 2021 08:47:46 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210319001622.1c19ad41@tachikoma.lepiller.eu> Date: Wed, 31 Mar 2021 14:47:44 +0200 In-Reply-To: <20210319001622.1c19ad41@tachikoma.lepiller.eu> (Julien Lepiller's message of "Fri, 19 Mar 2021 00:16:22 +0100") Message-ID: <87r1jva3rj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617194890; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Lxl0ZtgqgJgwLebYV8d+BbxRWWlWC65TRS5/eupFkaM=; b=IP+wZL+NR4qefLga1DCjkB/5uvO4iuHyDcygzk/d4Tq4rhzi2km9Flyd8O1kkQ4VdNfO+b BB+6s81w8tHOctyacpzWU8kBCC+WjIBZ8dg3LiqLFeMSxLSFW5oGfCXRJeiFdGOGaCRBA/ XJnXDstezqByiLdyKMklrMr7NxuLneF481mbwiWCvtBOKxBpgI5BJwA2LkY1bkykxkUegD u53EuxEkb6SW/czXCUpA6OtdoNQRrEj3nwufGsbL0CqxMdqBLHwpwfsTIQR7q1G2v6wANx ylnwGT5UjplX3T1L/AFZSJHvHRKv8AMpTs+XJmkip/ss7Dj+P0zqITI4SC6QGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617194890; a=rsa-sha256; cv=none; b=c6Ht2xy9WHLxH3deUMrUwZ5gUDIBpDNjF//4y6GuLBXIMSY2434EahvHyWyO6Nct3oexot rHqj1jDBzWon+btOI8itcGPQglq/bHErORVgcLEefUacfQNjJhlThtlvTf5CzSQeoNJbWE lXC9LIOpQ/bom4aYp0epHKbJ+i976KE7fyOAaSScqDPw8LgeiX1e9AwworCb1VZMp0zfNy ijgB0AnCzJpb9AMLOX4SuCpUK377xcsVq9VRgy45y+c2ilZ5PbMqc7FDj697iSHw4ceE2l IE9Ouj3yB2YFXIqs0Gxq6cIz0/CyLCQPqZTrHQLZzJ9E5+OuFImBhPr9CxtHvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 6922820260 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: CBkHuV2nMn3j Hi Julien, Julien Lepiller skribis: >>>From c72e34aa0eb0db589557e047c5db0128273d5d12 Mon Sep 17 00:00:00 2001 > From: Julien Lepiller > Date: Thu, 18 Mar 2021 23:41:40 +0100 > Subject: [PATCH 2/2] gnu: python: Enable optimizations. > > As a result, python execution time of scripts is decreased by 6 to 40%. > > gnu/packages/python (python-2.7)[arguments]: Add configure and make flags= to > optimize the resulting python. LGTM! Great that you found about these options. I wonder what can be done to reduce the package size. On =E2=80=98core-updates=E2=80=99, we=E2=80=99re already stripping ELF binarie= s a bit more than on =E2=80=98master=E2=80=99. What does =E2=80=98size =E2=80=A6/bin/python=E2=80=99 say? Could it be the= re=E2=80=99s GIMPLE left in the executable or in libpython.so as a result of using -flto? Thanks, Ludo=E2=80=99.