[Python-Dev] first post introduction and question regarding lto

Gregory P. Smith greg at krypto.org
Mon Aug 7 18:12:22 EDT 2017


I've personally never seen a situation where PGO is not desired yet some
other fancier optimization such as LTO is. When do you encounter people
wanting that?  PGO always produces a 10-20% faster CPython interpreter.

I have no problem with patches enabling an LTO only build for anyone who
wants one if they do not already exist.  At the moment I'm not sure which
LTO toolchains actually work properly.  We removed it from inclusion in
--enable-optimizations because it was clearly broken in some common
environments.

If LTO without PGO is useful, making it work is probably just a matter of
making sure @LTOFLAGS@ show up on the non-PGO related Makefile.pre.in
targets as well as updating the help text for --with-lto in configure.ac.
 [untested]

-gps


On Mon, Aug 7, 2017 at 12:00 PM Soldea, Octavian <octavian.soldea at intel.com>
wrote:

>
>
> Hello
>
>
>
> This is my first post after I just have subscribed to the Python-Dev
> mailing list. In this context, the welcome confirmation message suggested
> to introduce myself.
>
>
>
> My name is Octavian Soldea and I am with the Python optimization team in
> DSLOT group in Intel, Santa Clara, California. In the past I have received
> a PhD in Computer Science from the Technion, Israel Institute of Technology
> in Computer Vision.
>
>
>
> I would like to ask regarding the possibility of compiling Python with lto
> only. My question is if is the community interested to enable the
> possibility of compiling Python with lto only, i.e. without pgo? I have
> followed
>
> https://bugs.python.org/issue29243
>
> and
>
> https://bugs.python.org/issue29641
>
> however, it is not clear if the separate compilation is already
> implemented. In my opinion this is a good option since pgo is not always
> desired.
>
>
>
> Best regards,
>
>   Octavian
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/greg%40krypto.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170807/c45a62bc/attachment.html>


More information about the Python-Dev mailing list