Skip to content

[beta] syntax: avoid loading the same source-file multiple times #43840

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
Aug 13, 2017

Conversation

arielb1
Copy link
Contributor

@arielb1 arielb1 commented Aug 13, 2017

We already had a cache for file contents, but we read the source-file
before testing the cache, causing obvious slowness, so this just avoids
loading the source-file when the cache already has the contents.

We already had a cache for file contents, but we read the source-file
before testing the cache, causing obvious slowness, so this just avoids
loading the source-file when the cache already has the contents.
@rust-highfive
Copy link
Contributor

r? @alexcrichton

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

@rust-highfive
Copy link
Contributor

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against beta. Please double check that you specified the right target!

@Mark-Simulacrum
Copy link
Member

This is a backport of part of #43584, right? If so, r=me.

@arielb1
Copy link
Contributor Author

arielb1 commented Aug 13, 2017

@Mark-Simulacrum

yeah

@Mark-Simulacrum
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 13, 2017

📌 Commit a3387eb has been approved by Mark-Simulacrum

@alexcrichton
Copy link
Member

Awesome thanks @arielb1!

@alexcrichton alexcrichton changed the title syntax: avoid loading the same source-file multiple times [beta] syntax: avoid loading the same source-file multiple times Aug 13, 2017
@arielb1
Copy link
Contributor Author

arielb1 commented Aug 13, 2017

@alexcrichton (the second commit fixes a "different" O(n^2) discovered by the test case)

@alexcrichton
Copy link
Member

Oh yeah that sounds fine to me to not backport

@alexcrichton
Copy link
Member

@bors: p=2

(beta backport)

@bors
Copy link
Collaborator

bors commented Aug 13, 2017

⌛ Testing commit a3387eb with merge 6807eef...

bors added a commit that referenced this pull request Aug 13, 2017
[beta] syntax: avoid loading the same source-file multiple times

We already had a cache for file contents, but we read the source-file
before testing the cache, causing obvious slowness, so this just avoids
loading the source-file when the cache already has the contents.
@bors
Copy link
Collaborator

bors commented Aug 13, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing 6807eef to beta...

@bors bors merged commit a3387eb into rust-lang:beta Aug 13, 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.

5 participants