Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Jun 2024 06:24:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279585] lang/python311: Improve build times
Message-ID:  <bug-279585-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279585

            Bug ID: 279585
           Summary: lang/python311: Improve build times
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: diizzy@FreeBSD.org
                CC: fuz@FreeBSD.org, mandree@FreeBSD.org,
                    pkubaj@FreeBSD.org, wen@FreeBSD.org
             Flags: maintainer-feedback?(python@FreeBSD.org)
          Assignee: python@FreeBSD.org

Created attachment 251284
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251284&action=
=3Dedit
Patch for python311

- Don't build with debug symbols by default, we discard these anyway and it
reduces build time with roughly 1/4th (real) on my Tigerlake laptop with LTO
enabled. If debug symbols are needed use our framework's WITH_DEBUG switch

Tested on 14.0-RELEASE (amd64)

With debug symbols (default)
        4m29.16s real           6m38.66s user           17.27s sys

Without debug symbols (-g)
        3m13.45s real           5m9.13s user            16.24s sys

- Switch from -flto=3Dthin to lto, there's no parallization so it's actually
slower and produces larger binaries

With -flto=3Dthin (default)
        3m13.45s real           5m9.13s user            16.24s sys
-rw-r--r--   1 root wheel 6332792 Jun  8 07:29 libpython3.11.so.1.0

With -flto
        2m42.62s real           4m48.13s user           16.68s sys
-rw-r--r--   1 root wheel 6224104 Jun  8 07:51 libpython3.11.so.1.0

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279585-7788>