Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] lookup_object: prioritize recently found objects

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:57:06

Jeff King [off-list ref] writes:
We could instead bump X into the `i` slot, and then shift
the whole contiguous chain down by one, resulting in:

index       | i-1 |  i  | i+1 | i+2 |
       -----------------------------------
entry   ... |  A  |  X  |  B  |  C  | ...
       -----------------------------------

That puts our chain in true most-recently-used order.
However, experiments show that it is not any faster (and in
fact, is slightly slower due to the extra manipulation).
Makes quite a lot of sense to me.  Very simple, clean and nice.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help