GNU bug report logs -
#47251
[core-updates] [patch] gnu: python: Enable optimizations.
Previous Next
Reported by: Julien Lepiller <julien <at> lepiller.eu>
Date: Thu, 18 Mar 2021 23:17:01 UTC
Severity: normal
Tags: patch
Done: Julien Lepiller <julien <at> lepiller.eu>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 47251 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Le Thu, 03 Jun 2021 11:48:40 +0200,
Ludovic Courtès <ludo <at> gnu.org> a écrit :
> Hi,
>
> Julien Lepiller <julien <at> 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).
[0002-gnu-python-Enable-optimizations.patch (text/x-patch, attachment)]
[0003-gnu-python-Do-not-install-static-libraries.patch (text/x-patch, attachment)]
[0004-gnu-python-Move-idle-to-a-separate-output.patch (text/x-patch, attachment)]
This bug report was last modified 4 years and 41 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.