-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustc_driver.dll
size on x86_64-pc-windows-gnu
toolchain
#92539
Comments
It looks like #84449 might well be relevant. Here's some outputs from First, nightly 2021-06-04 for the
Second, nightly 2021-06-05 for the
cc @alexcrichton - is it possible that the "tricks" referenced in #84449 to remove the
|
This would probably be fixed by #92107. There was a typo that prevented actually setting the necessary flag. Edit: Actually, not sure on that. I think that would affect the size for the msvc target, not the gnu target, so the opposite of what is described here. |
Oh dear I apologize for the bug here! It was definitely an oversight on my part to let that typo through. IIRC I tested at least on MSVC that the flag was respected, but given the graph in this issue and the fact that the typo flew under the radar it seems the MSVC |
Thanks both - I see #92107 is about to be merged in a rollup, so I'll check the next nightly produced after that lands and report back here. |
rustc_driver.dll
size on x86_64-pc-windows-gnu
targetrustc_driver.dll
size on x86_64-pc-windows-gnu
toolchain
Following up on this - it looks like #92107 has fixed this. Output of
Thanks @nikic for pushing a bugfix before I even reported this 😂 |
Nice! Apologies again on the oversight and thanks @nikic for fixing it! |
I noticed that the size of
rustc_driver.dll
for the windowsx86_64-pc-windows-gnu
toolchain seems suprisingly large compared to thex86-64-pc-windows-msvc
toolchain. It's also been growing quickly in recent releases.See chart below comparing the size of
rustc_driver.dll
for these two targets for stable releases since 1.40:Some size difference is obviously expected, however the huge jump around Rust 1.54 (slightly over doubling of the file size) looks suspect.
Bisecting on nightlies around that time, it looks like the jump happened in nightly 2021-06-05:
x86_64-pc-windows-gnu
rustc_driver size (bytes)I've recently been working in an environment where the file size matters. I don't know much about the compiler packaging process, however I'd be happy to help investigate and (if possible) undo this jump in file size, with the help of someone willing to guide me where to look.
So far, I started out by looking at PRs merged on 2021-06-04 (i.e. the day before the size bump).
The only PR that stands out to me as potentially affecting file size is #84449. I am wildly speculating; this could be a red herring. I'm going to investigate this a little further. Input from others more knowledgeable than myself is very welcome!
The text was updated successfully, but these errors were encountered: