Skip to content
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

Very long build time of openssl-sys in the vendored configuration on windows #2269

Open
R-Goc opened this issue Jul 25, 2024 · 1 comment
Open

Comments

@R-Goc
Copy link

R-Goc commented Jul 25, 2024

When building gitui which has openssl-sys in the vendored version as a transitive dependency, the build time is very long.
The CPU and RAM usage during the build is also extremely low. Compared to the rest of the build which takes around a minute the build for openssl-sys takes 13 minutes.
Rust version: 1.79.0 1.82.0
OS/Distro + Version: Windows 11 Beta
image
I don't recall this being an issue a few months ago when I last build gitui.
extrawurst/gitui#2303
I can send more details if needed
Initially it seems like the build step is not parallel, though it's probably more than that as even sequential compilation has higher cpu usage than what there is when building this crate.

@R-Goc
Copy link
Author

R-Goc commented Jul 25, 2024

Looking at task manager during build, there is only one instance of cl.exe (not sure why cargo chooses cl, there is clang in path as well, if there is a way to specify clang in config.toml I would prefer that), which is at a very low cpu and mem usage:
image
it also disappears and reappears quite frequently, with breaks of around 1 second in between.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant