Le Thu, 03 Jun 2021 11:48:40 +0200, Ludovic Courtès a écrit : > Hi, > > Julien Lepiller 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).