-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Suggestion: Cache x --help
so that it doesn't rebuild to show help message
#117653
Comments
Suggestion add'ly: the help message about the config toml is very helpful, but it'd be more helpful if it showed up when running x --help when folks are generally preparing to execute x for the first time! help: consider running |
This definitely doesn't happen to me -- this sounds like a bug (or maybe I'm missing something here?). |
It doesn't happen to me. How can we reproduce this? What is your build configuration(config.toml)? |
I've tested it with no config.toml and with the config_example.toml on windows. Perhaps the times are different for other people, but the core of the matter is that running |
I notice that now it only takes 0.69 seconds for me. The last thing I did with it last night was finish a successful I nuked my build directory and get the slow start only the first time I run I can't reproduce a second long help command today. I did switch my antivirus off in my build directory since that was happening, maybe that slowed down the 0.05s build enough? I doubt it, but I'm unsure. |
nori ran |
Ignoring bootstrap artifacts on |
i am not planning to make a pr for that change |
…an, r=albertlarsan68 speed up `x clean` Since `x clean` runs with bootstrap, we can speed up this process by avoiding the cleaning of bootstrap artifacts, as they are not necessarily needed to be cleaned. ref #rust-lang#117653 (comment)
…an, r=albertlarsan68 speed up `x clean` Since `x clean` runs with bootstrap, we can speed up this process by avoiding the cleaning of bootstrap artifacts, as they are not necessarily needed to be cleaned. ref #rust-lang#117653 (comment)
Rollup merge of rust-lang#117723 - onur-ozkan:keep-bootstrap-on-x-clean, r=albertlarsan68 speed up `x clean` Since `x clean` runs with bootstrap, we can speed up this process by avoiding the cleaning of bootstrap artifacts, as they are not necessarily needed to be cleaned. ref #rust-lang#117653 (comment)
With #117723, we no longer delete bootstrap artifacts unless the --all flag is used, which, in turn, removes the entire build directory. I will consider this task completed, as we are not going to move |
this is not necessarily true - you could run the bootstrap binary to generate the help, save that to a file, and then print the file in the python script. CI could enforce that the file is kept up to date. |
Seems very interesting solution 🤔. We can also achieve the 'instant help' thing by dowloading pre-compiled bootstrap (not for all the architectures, but x86 and arm should be enough for developers I guess?), which is already a focus for the team. Regarding 'printing from python', we are attempting to minimize the bootstrap logic there(in python scripts) as much as possible, ultimately aiming not to require having python for bootstrapping. So 'print the file' has to be done in shell scripts. At the end it seems very easy to implement and maintain anyway, nice suggestion :) |
running x --help takes around 60s because it redownloads and rebuilds x every time. If building x created or updated a cached file containing the help message, one could avoid this process and read the most up-to-date help message whenever they like!
The text was updated successfully, but these errors were encountered: