Skip to content

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

Merged
bors merged 1 commit into
rust-lang:betafrom
arielb1:unused-reads-beta
Aug 13, 2017
Merged

[beta] syntax: avoid loading the same source-file multiple times#43840
bors merged 1 commit into
rust-lang:betafrom
arielb1:unused-reads-beta

Conversation

@arielb1

@arielb1 arielb1 commented Aug 13, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

r? @alexcrichton

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

@rust-highfive

Copy link
Copy Markdown
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
Copy Markdown
Member

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

@arielb1

arielb1 commented Aug 13, 2017

Copy link
Copy Markdown
Contributor Author

@Mark-Simulacrum

yeah

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Aug 13, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit a3387eb has been approved by Mark-Simulacrum

@alexcrichton

Copy link
Copy Markdown
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

arielb1 commented Aug 13, 2017

Copy link
Copy Markdown
Contributor Author

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

@alexcrichton

Copy link
Copy Markdown
Member

Oh yeah that sounds fine to me to not backport

@alexcrichton

Copy link
Copy Markdown
Member

@bors: p=2

(beta backport)

@bors

bors commented Aug 13, 2017

Copy link
Copy Markdown
Collaborator

⌛ 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

bors commented Aug 13, 2017

Copy link
Copy Markdown
Collaborator

☀️ 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