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

Re: [PATCH] name-hash: don't add sparse directories in threaded lazy init

From
Junio C Hamano <gitster@pobox.com>
Date
May 21, 2025, 18:32 UTC
Message-ID
<xmqqwma9ak7p.fsf@gitster.g>
In-Reply-To
<9c26d844-6ac5-449b-a5ff-a842ed6ba8b9@gmail.com>
Derrick Stolee <stolee@gmail.com> writes:
> This seems to be a performance-only fix, ...

Hmph, then the proposed log message is phrased in a slightly misleading way. I took that "should not" below ...

> Sparse directory entries represent a directory that is outside the
> sparse-checkout definition. These are not paths to blobs, so should not
> be added to the name_hash table as they must never be queried.

... to be saying that we would find something we should not find when querying the name_hash table if we didn't omit them, and the change is done for correctness.

Thanks for a quick review.  Very much appreciated.
Previous: Derrick StoleeNext: Alex Mironov
Message 3 of 13 in “name-hash: don't add sparse directories in threaded lazy init”
  1. name-hash: don't add sparse directories in threaded lazy initAlex Mironov via GitGitGadget, May 21, 2025
  2. Derrick StoleeMay 21, 2025
  3. Junio C HamanoMay 21, 2025
  4. Alex MironovMay 21, 2025
  5. name-hash: don't add sparse directories in threaded lazy initAlex Mironov via GitGitGadget, May 21, 2025
  6. Junio C HamanoMay 21, 2025
  7. Alex MironovMay 21, 2025
  8. Junio C HamanoMay 21, 2025
  9. Junio C HamanoMay 21, 2025
  10. Alex MironovMay 21, 2025
  11. name-hash: don't add sparse directories in threaded lazy initAlex Mironov via GitGitGadget, May 21, 2025
  12. Junio C HamanoMay 21, 2025
  13. Derrick StoleeMay 22, 2025

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.