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

Avoid hashing when creating a DepNode from a HirId #44335

Merged
merged 1 commit into from
Sep 9, 2017

Conversation

arielb1
Copy link
Contributor

@arielb1 arielb1 commented Sep 5, 2017

Instead, combine the already-present DefPathHash with the 32-bit
ItemLocalIndex.

Should fix #44323.

r? @alexcrichton

Instead, combine the already-present DefPathHash with the 32-bit
ItemLocalIndex.

Should fix rust-lang#44323.
@arielb1
Copy link
Contributor Author

arielb1 commented Sep 5, 2017

See #44337 for worries about collision-resistance + combine.

@alexcrichton
Copy link
Member

@bors: r+

Thanks for looking into this @arielb1!

@bors
Copy link
Contributor

bors commented Sep 5, 2017

📌 Commit d14ed92 has been approved by alexcrichton

@arielb1 arielb1 added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Sep 5, 2017
@michaelwoerister
Copy link
Member

Just wanted to add this to a rollup, but we are interested in the performance impact of this change, so it should stay a separate merge commit. Just in case anybody else gets a similar idea.

@Mark-Simulacrum
Copy link
Member

@bors p=1 (perf improvement, hopefully)

@bors
Copy link
Contributor

bors commented Sep 9, 2017

⌛ Testing commit d14ed92 with merge a9fa8cc...

bors added a commit that referenced this pull request Sep 9, 2017
Avoid hashing when creating a DepNode from a HirId

Instead, combine the already-present DefPathHash with the 32-bit
ItemLocalIndex.

Should fix #44323.

r? @alexcrichton
@bors
Copy link
Contributor

bors commented Sep 9, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing a9fa8cc to master...

@bors bors merged commit d14ed92 into rust-lang:master Sep 9, 2017
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.

Compile time regression in #44186
5 participants