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

[GSoC] Designing a faster index format - Progress report

From
Thomas Gummerer <t.gummerer@gmail.com>
Date
May 23, 2012, 12:21 UTC
Message-ID
<20120523122135.GA58204@tgummerer.unibz.it>
mhagger@alum.mit.edu, pclouds@gmail.com
Bcc: 
Subject: [GSoC] Designing a new index format - Progress update
Reply-To: 

As Thomas Rast suggested yesterday on IRC, I'll give you a quick overview of the work that has already been done in my GSoC project.

== Work done in the past 5 weeks ==
- Definition of a tentative index file v5 format [1]. This differs
  from the proposal in making it possible to bisect the directory
  entries and file entries, to do a binary search. The exact bits
  for each section were also defined. To further compress the index,
  along with prefix compression, the stat data is hashed, since
  it's only used for comparison, but the plain data is never used.
  Thanks to Michael Haggerty, Nguyen Thai Ngoc Duy, Thomas Rast
  and Robin Rosenberg for feedback.
- Prototype of a converter from the index format v2/v3 to the index
  format v5. [2] The converter reads the index from a git repository,
  can output parts of the index (header, index entries as in
  git ls-files --debug, cache tree as in test-dump-cache-tree, or
  the reuc data). Then it writes the v5 index file format to
  .git/index-v5. Thanks to Michael Haggerty for the code review.
- Prototype of a reader for the new index file format. [3] The
  reader has mainly the purpose to show the algorithm used to read
  the index lexicographically sorted after the full name which is
  required by the current internal memory format. Big thanks for
  reviewing this code and giving me advice on refactoring goes
  to Michael Haggerty.
== Outlook for the next week ==
- Start working on actual git code
- Read the header of the new format

[1] https://github.com/tgummerer/git/wiki/Index-file-format-v5 [2] https://github.com/tgummerer/git/blob/pythonprototype/git-convert-index.py [3] https://github.com/tgummerer/git/blob/pythonprototype/git-read-index-v5.py

Next: Thomas Rast
Message 1 of 13 in “[GSoC] Designing a faster index format - Progress report”
  1. Thomas GummererMay 23, 2012
  2. Thomas RastMay 24, 2012
  3. Junio C HamanoMay 24, 2012
  4. Nguyen Thai Ngoc DuyMay 25, 2012
  5. Thomas GummererMay 25, 2012
  6. Nguyen Thai Ngoc DuyMay 26, 2012
  7. Thomas GummererMay 27, 2012
  8. Junio C HamanoMay 27, 2012
  9. Nguyen Thai Ngoc DuyMay 27, 2012
  10. Thomas GummererMay 28, 2012
  11. Thomas RastMay 29, 2012
  12. Nguyen Thai Ngoc DuyMay 29, 2012
  13. Junio C HamanoMay 29, 2012

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.