Skip to content

Don't reuse the Chalk solver #3502

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
Mar 6, 2020
Merged

Conversation

flodiebold
Copy link
Member

This slows down analysis-stats a bit (~5% in my measurement), but improves
incremental checking a lot because we can reuse trait solve results.

This slows down analysis-stats a bit (~5% in my measurement), but improves
incremental checking a lot because we can reuse trait solve results.
@matklad
Copy link
Member

matklad commented Mar 6, 2020

bors r+

bors bot added a commit that referenced this pull request Mar 6, 2020
3502: Don't reuse the Chalk solver r=matklad a=flodiebold

This slows down analysis-stats a bit (~5% in my measurement), but improves
incremental checking a lot because we can reuse trait solve results.

Co-authored-by: Florian Diebold <[email protected]>
@bors
Copy link
Contributor

bors bot commented Mar 6, 2020

Build failed

@matklad
Copy link
Member

matklad commented Mar 6, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 6, 2020

@bors bors bot merged commit d4cea98 into rust-lang:master Mar 6, 2020
@matklad
Copy link
Member

matklad commented Mar 6, 2020

Sigh, this makes #3188 much worse ;-(

@flodiebold flodiebold deleted the no-solver-reuse branch March 6, 2020 23:23
@bkchr
Copy link
Contributor

bkchr commented Mar 8, 2020

I think this solves the recent memory usage problems I had with rust-analyzer: #2945 (comment)

Ty! :)

(Just tested it a little bit by randomly browsing the Substrate source code, but it clearly looks way better than before.)

@bkchr bkchr mentioned this pull request Mar 8, 2020
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.

3 participants