git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] lookup_object: prioritize recently found objects

From
Junio C Hamano <gitster@pobox.com>
Date
May 1, 2013, 21:57 UTC
Message-ID
<7vwqri4b4g.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20130501203449.GA12535@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 11 quoted lines
> 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.
Previous: Jeff KingNext: Johannes Sixt
Message 2 of 12 in “lookup_object: prioritize recently found objects”
  1. lookup_object: prioritize recently found objectsJeff King, May 1, 2013
  2. Junio C HamanoMay 1, 2013
  3. Johannes SixtMay 2, 2013
  4. Jeff KingMay 2, 2013
  5. Johannes SixtMay 2, 2013
  6. Junio C HamanoMay 2, 2013
  7. Jeff KingMay 2, 2013
  8. Jeff KingMay 2, 2013
  9. Johannes SixtMay 3, 2013
  10. Jeff KingMay 3, 2013
  11. Jeff KingMay 3, 2013
  12. Junio C HamanoMay 2, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.