-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[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
Conversation
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 has picked a reviewer for you, use r? to override) |
This is a backport of part of #43584, right? If so, r=me. |
yeah |
@bors r+ |
📌 Commit a3387eb has been approved by |
Awesome thanks @arielb1! |
@alexcrichton (the second commit fixes a "different" O(n^2) discovered by the test case) |
Oh yeah that sounds fine to me to not backport |
@bors: p=2 (beta backport) |
[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.
☀️ Test successful - status-appveyor, status-travis |
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.