Skip to content

incr.comp.: Add some caching to Predecessors construction. #39020

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 3 commits into from
Jan 15, 2017

Conversation

michaelwoerister
Copy link
Member

This speeds up the "serialize dep graph" pass for libsyntax from 45 secs to 15 secs on my machine. Still far from ideal, but things will get better when we change the metadata hashing strategy.

The CACHING_THRESHOLD value of 60 has been arrived at experimentally. It seemed to give the best speedup.

r? @nikomatsakis

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Jan 13, 2017

📌 Commit 482fa0f has been approved by nikomatsakis

@bors
Copy link
Collaborator

bors commented Jan 14, 2017

⌛ Testing commit 482fa0f with merge ebe9682...

bors added a commit that referenced this pull request Jan 14, 2017
…matsakis

incr.comp.: Add some caching to Predecessors construction.

This speeds up the "serialize dep graph" pass for libsyntax from 45 secs to 15 secs on my machine. Still far from ideal, but things will get better when we change the metadata hashing strategy.

The `CACHING_THRESHOLD` value of 60 has been arrived at experimentally. It seemed to give the best speedup.

r? @nikomatsakis
@bors
Copy link
Collaborator

bors commented Jan 15, 2017

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

@bors bors merged commit 482fa0f into rust-lang:master Jan 15, 2017
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