Skip to content

Use a faster early exit during region expansion #57697

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

Merged
merged 1 commit into from
Jan 20, 2019

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented Jan 17, 2019

Turns out that the equality check for regions is rather expensive, and
the current early exit check works in such a way, that the comparison is
even done twice. As we only really care about the case of equal scopes,
we can perform a faster, more specialized check and move it up one
level, so we can eventually skip the additional full comparison as well.

Turns out that the equality check for regions is rather expensive, and
the current early exit check works in such a way, that the comparison is
even done twice. As we only really care about the case of equal scopes,
we can perform a faster, more specialized check and move it up one
level, so we can eventually skip the additional full comparison as well.
@rust-highfive
Copy link
Contributor

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 17, 2019
@nagisa
Copy link
Member

nagisa commented Jan 17, 2019

@bors try

@bors
Copy link
Collaborator

bors commented Jan 17, 2019

⌛ Trying commit f0d3df3 with merge 2b619f5...

bors added a commit that referenced this pull request Jan 17, 2019
Use a faster early exit during region expansion

Turns out that the equality check for regions is rather expensive, and
the current early exit check works in such a way, that the comparison is
even done twice. As we only really care about the case of equal scopes,
we can perform a faster, more specialized check and move it up one
level, so we can eventually skip the additional full comparison as well.
@bors
Copy link
Collaborator

bors commented Jan 17, 2019

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

@nagisa
Copy link
Member

nagisa commented Jan 17, 2019

@rust-timer build 2b619f5

@rust-timer
Copy link
Collaborator

Success: Queued 2b619f5 with parent daa53a5, comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit 2b619f5

@nagisa
Copy link
Member

nagisa commented Jan 17, 2019

@bors r+

@dotdash dotdash 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 18, 2019
@ishitatsuyuki
Copy link
Contributor

@nagisa your r+ is probably missed.

@dotdash
Copy link
Contributor Author

dotdash commented Jan 20, 2019

@bors r=nagisa

@bors
Copy link
Collaborator

bors commented Jan 20, 2019

📌 Commit f0d3df3 has been approved by nagisa

@bors
Copy link
Collaborator

bors commented Jan 20, 2019

⌛ Testing commit f0d3df3 with merge 794e228...

bors added a commit that referenced this pull request Jan 20, 2019
Use a faster early exit during region expansion

Turns out that the equality check for regions is rather expensive, and
the current early exit check works in such a way, that the comparison is
even done twice. As we only really care about the case of equal scopes,
we can perform a faster, more specialized check and move it up one
level, so we can eventually skip the additional full comparison as well.
@bors
Copy link
Collaborator

bors commented Jan 20, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: nagisa
Pushing 794e228 to master...

@bors bors merged commit f0d3df3 into rust-lang:master Jan 20, 2019
@dotdash dotdash deleted the fast_lex_reg_resol_item_bodies branch January 20, 2020 08:57
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.

7 participants