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

Re: [PATCH v2 2/2] index-pack: kill union delta_base to save memory

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 27, 2015, 21:18 UTC
Message-ID
<xmqqzj7zhx31.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1424947928-19396-3-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
> Notice that with "recent" Git versions, ofs-delta objects are
> preferred over ref-delta objects and ref-delta objects have no reason
> to be present in a clone pack.

It is true that we try to use ofs-delta as much as possible, but where does "have no reason to be present" come from?

When an object cannot be represented as an ofs-delta (which can only refer backwards), don't we use ref-delta, instead of storing it as a deflated-full object?

Probably "Not so ancient versions of Git tries to use ofs-delta encoding whenever possible, so it is expected that objects encoded using ref-delta are minority" may be closer to the truth. And that observation does justify why using two separate pools (one with 8-byte entries for ofs-delta, the other with 20-byte entries for ref-delta) is a better idean than using one pool with 20-byte entries for both kinds.

Previous: Nguyễn Thái Ngọc DuyNext: Duy Nguyen
Message 9 of 11 in “nd/slim-index-pack-memory-usage updates”
  1. 0/2 nd/slim-index-pack-memory-usage updatesNguyễn Thái Ngọc Duy, Feb 20, 2015
  2. 1/2 index-pack: reduce object_entry size to save memoryNguyễn Thái Ngọc Duy, Feb 20, 2015
  3. Junio C HamanoFeb 23, 2015
  4. Duy NguyenFeb 23, 2015
  5. 2/2 index-pack: kill union delta_base to save memoryNguyễn Thái Ngọc Duy, Feb 20, 2015
  6. 0/2 nd/slim-index-pack-memory-usage updatesNguyễn Thái Ngọc Duy, Feb 26, 2015
  7. 1/2 index-pack: reduce object_entry size to save memoryNguyễn Thái Ngọc Duy, Feb 26, 2015
  8. 2/2 index-pack: kill union delta_base to save memoryNguyễn Thái Ngọc Duy, Feb 26, 2015
  9. Junio C HamanoFeb 27, 2015
  10. Duy NguyenFeb 28, 2015
  11. Junio C HamanoMar 1, 2015

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.