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

Does git load index file into memory?

From
FKFarhan Khan <khanzf@gmail.com>
Date
Oct 12, 2018, 16:22 UTC
Message-ID
<CAFd4kYCTuLMZ6UDk49MASbZfhwjgUcmfeyd6jZS5QO9-LnzLCw@mail.gmail.com>
Hi all,

Does git load the entire index file into memory when it wants to edit/view it? I ask because I wonder if this can become a problem with the index file becomes arbitrarily large, like for the Linux kernel.

Thanks, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE

Next: Thomas Gummerer
Message 1 of 2 in “Does git load index file into memory?”
  1. Farhan KhanOct 12, 2018
  2. Thomas GummererOct 14, 2018

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.