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

Parallelize and optimize parts of HIR map creation #57232

Merged
merged 1 commit into from
Jan 14, 2019

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Dec 31, 2018

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 31, 2018
@Zoxc
Copy link
Contributor Author

Zoxc commented Dec 31, 2018

The addition of ModuleItems and iteration of module item-likes is the same code as in #51487

@Zoxc
Copy link
Contributor Author

Zoxc commented Dec 31, 2018

@bors try

@bors
Copy link
Contributor

bors commented Dec 31, 2018

⌛ Trying commit d407822 with merge 55497bb...

bors added a commit that referenced this pull request Dec 31, 2018
Parallelize and optimize parts of HIR map creation

r? @michaelwoerister
@bors
Copy link
Contributor

bors commented Dec 31, 2018

☔ The latest upstream changes (presumably #57061) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented Dec 31, 2018

☀️ Test successful - status-travis
State: approved= try=True

@Zoxc
Copy link
Contributor Author

Zoxc commented Dec 31, 2018

@rust-timer build 55497bb

@rust-timer
Copy link
Collaborator

Success: Queued 55497bb with parent aeed63b, comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit 55497bb

@Zoxc
Copy link
Contributor Author

Zoxc commented Jan 1, 2019

Blocked on #51487

@michaelwoerister
Copy link
Member

Two thoughts:

  • Doing the measurements in single-threaded mode doesn't do the optimizations justice, I guess.
  • Would the work done here be obsolete once we implement end-to-end queries?

@Zoxc
Copy link
Contributor Author

Zoxc commented Jan 9, 2019

Would the work done here be obsolete once we implement end-to-end queries?

I'd need to know a more concrete plan to answer this, but it won't be obsolete assuming the HIR map is still around.

@michaelwoerister
Copy link
Member

It's at least possible that there won't be a hir map in the current form, and that we rather build it lazily. There'd then be a bunch of queries providing the information that the map holds now (which automatically make building the map parallel). But I don't think anybody has a concrete design for this yet.

@bors
Copy link
Contributor

bors commented Jan 13, 2019

☔ The latest upstream changes (presumably #51487) made this pull request unmergeable. Please resolve the merge conflicts.

@michaelwoerister
Copy link
Member

Ok, the changes here don't look too complicated. Let's do it!

@bors r+

Thanks, @Zoxc!

@bors
Copy link
Contributor

bors commented Jan 14, 2019

📌 Commit cbb5a00 has been approved by michaelwoerister

@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 Jan 14, 2019
Centril added a commit to Centril/rust that referenced this pull request Jan 14, 2019
…oerister

Parallelize and optimize parts of HIR map creation

r? @michaelwoerister
Centril added a commit to Centril/rust that referenced this pull request Jan 14, 2019
…oerister

Parallelize and optimize parts of HIR map creation

r? @michaelwoerister
bors added a commit that referenced this pull request Jan 14, 2019
Rollup of 6 pull requests

Successful merges:

 - #57232 (Parallelize and optimize parts of HIR map creation)
 - #57418 (MetadataOnlyCodegenBackend: run the collector only once)
 - #57465 (Stabilize cfg_target_vendor)
 - #57477 (clarify resolve typo suggestion)
 - #57556 (privacy: Fix private-in-public check for existential types)
 - #57584 (Remove the `connect_timeout_unroutable` test.)

Failed merges:

r? @ghost
@bors bors merged commit cbb5a00 into rust-lang:master Jan 14, 2019
@Zoxc Zoxc deleted the par-collector-misc branch January 14, 2019 21:26
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.

5 participants