guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#47251] [core-updates] [patch] gnu: python: Enable optimizations.


From: Julien Lepiller
Subject: [bug#47251] [core-updates] [patch] gnu: python: Enable optimizations.
Date: Sat, 5 Jun 2021 17:43:08 +0200

Le Thu, 03 Jun 2021 11:48:40 +0200,
Ludovic Courtès <ludo@gnu.org> a écrit :

> Hi,
> 
> Julien Lepiller <julien@lepiller.eu> skribis:
> 
> > But I noticed another file gained a lot of weight:
> > lib/python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.a weighs
> > 39MB, whereas on master (for 3.8.2) it weighs 6MB. Here is what
> > size has to say:  
> 
> Yeah, the .o files in there likely contain serialized GIMPLE, as a
> result of compiling with ‘-flto’.
> 
> How about removing *.a altogether in a separate patch?  Or moving it
> to a “static” output?  This would be consistent with what’s done in
> other packages.
> 
> Thanks,
> Ludo’.

Right, this is a good idea. I wrote the attached patches to: enable
optimizations, prevent building and installing the static library and
to install idle to a separate output, as it is not required in general.

With the patch from https://issues.guix.gnu.org/47214, python 3.9 on
coreupdates is ~1.7x faster than python 3.8 on master, and is ~25MB
smaller than 3.8 on master (I haven't measured the speedup for python2,
and it is ~10MB smaller with these changes than on master).

Attachment: 0002-gnu-python-Enable-optimizations.patch
Description: Text Data

Attachment: 0003-gnu-python-Do-not-install-static-libraries.patch
Description: Text Data

Attachment: 0004-gnu-python-Move-idle-to-a-separate-output.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]