https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279585

            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: dii...@freebsd.org
                CC: f...@freebsd.org, mand...@freebsd.org,
                    pku...@freebsd.org, w...@freebsd.org
             Flags: maintainer-feedback?(python@FreeBSD.org)
          Assignee: python@FreeBSD.org

Created attachment 251284
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251284&action=edit
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=thin to lto, there's no parallization so it's actually
slower and produces larger binaries

With -flto=thin (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

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

Reply via email to