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

[PATCH v2] unpack-trees: avoid duplicate ODB lookups during checkout

From
Ggit@jeffhostetler.com <git@jeffhostetler.com>
Date
Apr 7, 2017, 15:53 UTC
Message-ID
<20170407155306.42375-1-git@jeffhostetler.com>
From: Jeff Hostetler <jeffhost@microsoft.com>

Version 2 simplifies this and just copies the tree_descriptor data and borrows the underlying buffer without mallocing. It also handles the n=3 cases, so merges shold be helped too.

I've updated the p0004 perf times in the commit message. The V2 changes took ~0.15 off the V1 times. The total reduction is ~1 second.

================ Avoid duplicate ODB lookups for trees during traverse_tree_recursive().

Jeff Hostetler (1):
  unpack-trees: avoid duplicate ODB lookups during checkout
 unpack-trees.c | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)
-- 
2.9.3
Next: git@jeffhostetler.com
Message 1 of 8 in “unpack-trees: avoid duplicate ODB lookups during checkout”
  1. unpack-trees: avoid duplicate ODB lookups during checkoutgit@jeffhostetler.com, Apr 7, 2017
  2. unpack-trees: avoid duplicate ODB lookups during checkoutgit@jeffhostetler.com, Apr 7, 2017
  3. René ScharfeApr 8, 2017
  4. Jeff KingApr 10, 2017
  5. Jeff HostetlerApr 10, 2017
  6. Jeff HostetlerApr 10, 2017
  7. René ScharfeApr 10, 2017
  8. Jeff HostetlerApr 11, 2017

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.