maintainer-feedback requested: [Bug 279585] lang/python311: Improve build times
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 279585] lang/python311: Improve build times"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Jun 2024 06:24:42 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-python (Nobody) <python@FreeBSD.org> for maintainer-feedback: Bug 279585: lang/python311: Improve build times https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279585 --- Description --- - 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