From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 10 16:55:51 2021 Received: (at 47251) by debbugs.gnu.org; 10 Apr 2021 20:55:51 +0000 Received: from localhost ([127.0.0.1]:53429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVKdy-0002qP-Vs for submit@debbugs.gnu.org; Sat, 10 Apr 2021 16:55:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVKdx-0002q4-0m for 47251@debbugs.gnu.org; Sat, 10 Apr 2021 16:55:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50825) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVKdo-0003x4-2Q; Sat, 10 Apr 2021 16:55:40 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42170 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lVKdD-0003CW-IZ; Sat, 10 Apr 2021 16:55:05 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Julien Lepiller Subject: Re: bug#47251: [core-updates] [patch] gnu: python: Enable optimizations. References: <20210319001622.1c19ad41@tachikoma.lepiller.eu> <87r1jva3rj.fsf@gnu.org> Date: Sat, 10 Apr 2021 22:55:02 +0200 In-Reply-To: <87r1jva3rj.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 31 Mar 2021 14:47:44 +0200") Message-ID: <8735vx272x.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47251 Cc: 47251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Ping! :-) Ludovic Court=C3=A8s skribis: > 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 flag= s 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 binar= ies 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 t= here=E2=80=99s GIMPLE left in > the executable or in libpython.so as a result of using -flto? > > Thanks, > Ludo=E2=80=99.