On Thu, Jun 21, 2018 at 8:20 PM Matthew Brett <matthew.brett@gmail.com> wrote:
On Thu, Jun 21, 2018 at 12:45 PM, Robin Becker <robin@reportlab.com> wrote:
> On 15/06/2018 23:42, Nathaniel Smith wrote:
> I just tried out the latest manylinux1 image along with updated scripts from
> matthew-brett/multibuild and find my wheels seem to have shrunk eg
>
> reportlab-3.4.42-cp27-cp27m-manylinux1_x86_64.whl
>
> old: 3796941
> new: 2516821
>
> looking in side the wheels it looks like the .so files have been slimmed.
> Does anyone know if that is just because they no longer include debugging
> information etc etc?

If you haven't built in a while, this could well be the result of
merging https://github.com/matthew-brett/multibuild/pull/140 - which
introduced stripped Linux binaries.

As that's seemingly a mystery solved, hijacking the thread to ask has anyone seen what'd LTO do to wheel sizes?

Debian has AFAIK enabled LTO for Python and some packages grab their build settings from how the Python has been built. Organisations roll their own non-manylinux wheels for various reasons, so there could be actual interest in any gains.

There's pre-existing speculation from the GCC list in regards to performance from a while back, but that discussion went nowhere:
https://gcc.gnu.org/ml/gcc-help/2011-03/msg00330.html

--
Joni Orponen