Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstyle: Iterate the LRU cache contents from back to front. #15891
Conversation
highfive
commented
Mar 9, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Mar 9, 2017
|
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+ |
|
|
I don't think that happens a lot of times since we clear it often, but sure. |
|
|
|
@bors-servo r=bholley |
|
|
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 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 -->
|
|
|
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 |
|
|
|
@bors-servo r=bholley,mbrubeck |
|
|
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 -->
|
|
emilio commentedMar 9, 2017
•
edited by larsbergstrom
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