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

[Obligation Forest] Don't process cycles when stalled #37231

Merged
merged 2 commits into from
Oct 19, 2016
Merged

[Obligation Forest] Don't process cycles when stalled #37231

merged 2 commits into from
Oct 19, 2016

Conversation

jonas-schievink
Copy link
Contributor

This improves the inflate-0.1.0 benchmark by about 10% for me.

/me hopes this is sound

This improves the `inflate-0.1.0` benchmark by about 10% for me.
@rust-highfive
Copy link
Collaborator

r? @arielb1

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

@arielb1
Copy link
Contributor

arielb1 commented Oct 17, 2016

That's the change I was talking about with @nnethercote

@bors r+

@bors
Copy link
Contributor

bors commented Oct 17, 2016

📌 Commit 88fde7f has been approved by arielb1

@jonas-schievink
Copy link
Contributor Author

According to Travis, it makes this test fail

@arielb1
Copy link
Contributor

arielb1 commented Oct 17, 2016

That's what we have the tests for. Add && errors.is_empty() to the if-statement.

@bors r-

@jonas-schievink
Copy link
Contributor Author

It's probably because error nodes are handled like popped nodes, so we'd have to compress when an obligation errors.

@arielb1
Copy link
Contributor

arielb1 commented Oct 17, 2016

Sure 'bout that.

@arielb1
Copy link
Contributor

arielb1 commented Oct 17, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Oct 17, 2016

📌 Commit 0c844d2 has been approved by arielb1

@nnethercote
Copy link
Contributor

I just measured a stage1 compiler with compare.py and got this:

inflate-0.1.0    4.923s vs  4.274s --> 1.152x faster (variance: 1.011x, 1.011x)

Nice!

eddyb added a commit to eddyb/rust that referenced this pull request Oct 19, 2016
…he-quest-for-performance, r=arielb1

[Obligation Forest] Don't process cycles when stalled

This improves the `inflate-0.1.0` benchmark by about 10% for me.

/me hopes this is sound
eddyb added a commit to eddyb/rust that referenced this pull request Oct 19, 2016
…he-quest-for-performance, r=arielb1

[Obligation Forest] Don't process cycles when stalled

This improves the `inflate-0.1.0` benchmark by about 10% for me.

/me hopes this is sound
bors added a commit that referenced this pull request Oct 19, 2016
@bors bors merged commit 0c844d2 into rust-lang:master Oct 19, 2016
@jonas-schievink jonas-schievink deleted the obligation-forest-the-quest-for-performance branch October 24, 2016 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants