-
Notifications
You must be signed in to change notification settings - Fork 1.1k
disable LTO in RISC-V to speed up build #1038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
After doing some emulated, local tests, I think this seems reasonable to try again. It'll be a less optimized python, but that's better than no riscv64 None of these builds are as slow as I was getting in #931 and it's on the same machine. 😕 🤷 $ # --with-lto
$ for ver in 3.10 3.11 3.12; do time docker build --no-cache --platform linux/riscv64 ./$ver/alpine3.20/; done
real 19m13.374s
real 30m32.618s
real 33m12.560s
$ # without lto
$ for ver in 3.10 3.11 3.12; do time docker build --no-cache --platform linux/riscv64 ./$ver/alpine3.20/; done
real 8m49.526s
real 9m41.161s
real 9m22.683s Requested change: also remove this part of |
@@ -182,7 +182,7 @@ RUN set -eux; \ | |||
# <3.10 does not have -fno-semantic-interposition enabled and --with-lto does nothing for performance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# <3.10 does not have -fno-semantic-interposition enabled and --with-lto does nothing for performance | |
# <3.10 does not have -fno-semantic-interposition enabled and --with-lto does nothing for performance | |
# skip LTO on alpine on riscv64: https://github.com/docker-library/python/pull/935, https://github.com/docker-library/python/pull/1038 |
thanks for the comments, should all be done |
Changes: - docker-library/python@4c3ad300: Merge pull request docker-library/python#1038 from mmoll/no_lto_on_riscv - docker-library/python@90aa4272: disable LTO in RISC-V to speed up build
Changes: - docker-library/python@4c3ad300: Merge pull request docker-library/python#1038 from mmoll/no_lto_on_riscv - docker-library/python@90aa4272: disable LTO in RISC-V to speed up build
Closes #1011