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

Faster submodule updating #49057

Merged
merged 1 commit into from
Mar 17, 2018
Merged

Faster submodule updating #49057

merged 1 commit into from
Mar 17, 2018

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Mar 15, 2018

For the common case when there are no submodules which need updating, this takes 0.48 seconds instead of 47 seconds.

r? @alexcrichton

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 15, 2018
@Mark-Simulacrum
Copy link
Member

What is the tradeoff here? That we won't clean out submodules if they have untracked files?

@Zoxc
Copy link
Contributor Author

Zoxc commented Mar 15, 2018

Yeah, they won't get cleaned by default, only when the submodule commit is outdated and the submodule updates.

@Mark-Simulacrum
Copy link
Member

That seems fine to me. I'm generally okay with this change then.

@alexcrichton
Copy link
Member

@bors: r+ rollup

Nice!

@bors
Copy link
Contributor

bors commented Mar 16, 2018

📌 Commit 72cb109 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 16, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Mar 17, 2018
Faster submodule updating

For the common case when there are no submodules which need updating, this takes 0.48 seconds instead of 47 seconds.

r? @alexcrichton
bors added a commit that referenced this pull request Mar 17, 2018
Rollup of 8 pull requests

- Successful merges: #48943, #48960, #48983, #49055, #49057, #49077, #49082, #49083
- Failed merges:
@bors bors merged commit 72cb109 into rust-lang:master Mar 17, 2018
@SimonSapin
Copy link
Contributor

I’m late to the party, but another reason to support this change: I was once surprised (and annoyed) to see the build system silently erase uncommitted local changes that I had just made to a submodule. Fortunately I still had those files open in my text editor, but silent data loss is really not good.

@Zoxc
Copy link
Contributor Author

Zoxc commented Mar 21, 2018

@SimonSapin That can still happen though if you pull master and the submodule was updated.

@Zoxc Zoxc deleted the fast-submodules branch March 21, 2018 11:24
jyn514 added a commit to jyn514/rust that referenced this pull request May 24, 2022
I don't know why anyone would turn this off; doing so makes builds much slower (nearly a 60x slowdown according to rust-lang#49057).
Remove the option to do so, which makes bootstrap a little easier to maintain.

Bootstrap continues to allow you to manage submodules manually by setting `submodules = false`.
JohnTitor added a commit to JohnTitor/rust that referenced this pull request May 24, 2022
…lacrum

Turn on `fast_submodules` unconditionally

I don't know why anyone would turn this off; doing so makes builds much slower (nearly a 60x slowdown according to rust-lang#49057).
Remove the option to do so, which makes bootstrap a little easier to maintain.

Bootstrap continues to allow you to manage submodules manually by setting `submodules = false`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants