Skip to content

Avoid hashing when creating a DepNode from a HirId - #44335

Merged
bors merged 1 commit into
rust-lang:masterfrom
arielb1:node-hashing
Sep 9, 2017
Merged

Avoid hashing when creating a DepNode from a HirId#44335
bors merged 1 commit into
rust-lang:masterfrom
arielb1:node-hashing

Conversation

@arielb1

Copy link
Copy Markdown
Contributor

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 fixrust-lang#44323.
@arielb1

Copy link
Copy Markdown
ContributorAuthor

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

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+

Thanks for looking into this @arielb1!

@bors

bors commented Sep 5, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit d14ed92 has been approved by alexcrichton

@arielb1arielb1 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
Copy Markdown
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
Copy Markdown
Member

@bors p=1 (perf improvement, hopefully)

@bors

bors commented Sep 9, 2017

Copy link
Copy Markdown
Collaborator

⌛ 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

bors commented Sep 9, 2017

Copy link
Copy Markdown
Collaborator

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

@bors
bors merged commit d14ed92 into rust-lang:masterSep 9, 2017
@borsbors mentioned this pull request Sep 9, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: 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

@arielb1@alexcrichton@bors@michaelwoerister@Mark-Simulacrum