-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
style: Iterate the LRU cache contents from back to front. #15891
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
|
Heads up! This PR modifies the following files:
|
|
r? @SimonSapin or @bholley |
|
File an E-Easy for converting this cache to a VecDeque to avoid memmoving each time we need to pop the least-recently-used entry? @bors-servo delegate+ |
|
✌️ @emilio can now approve this pull request |
I don't think that happens a lot of times since we clear it often, but sure. |
|
☔ The latest upstream changes (presumably #15888) made this pull request unmergeable. Please resolve the merge conflicts. |
5da67e3 to
be42f4b
Compare
|
@bors-servo r=bholley |
|
📌 Commit be42f4b has been approved by |
style: Iterate the LRU cache contents from back to front. This is on top of #15888. Only the second commit needs review. We put the more recently used item last, so iterating then from left to right is pointless. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15891) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-css |
|
@bors-servo retry
|
style: Iterate the LRU cache contents from back to front. This is on top of #15888. Only the second commit needs review. We put the more recently used item last, so iterating then from left to right is pointless. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15891) <!-- Reviewable:end -->
|
@bors-servo try |
style: Iterate the LRU cache contents from back to front. This is on top of #15888. Only the second commit needs review. We put the more recently used item last, so iterating then from left to right is pointless. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15891) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-gnu-dev, windows-msvc-dev |
|
Last commit fixes the reftests failures, I've asked @mbrubeck to take a look. |
|
r=mbrubeck for the layout fix |
|
@bors-servo r=bholley,mbrubeck |
|
📌 Commit eecd38a has been approved by |
We put the more recently used item last, so iterating then from left to right is pointless.
eecd38a to
4bafded
Compare
|
@bors-servo r=bholley,mbrubeck |
|
📌 Commit 4bafded has been approved by |
style: Iterate the LRU cache contents from back to front. This is on top of #15888. Only the second commit needs review. We put the more recently used item last, so iterating then from left to right is pointless. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15891) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-gnu-dev, windows-msvc-dev |
This is on top of #15888. Only the second commit needs review.
We put the more recently used item last, so iterating then from left to right is
pointless.
This change is