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

[PATCH 0/2] Avoid spending cycles to deltify binary guck

From
Junio C Hamano <junkio@cox.net>
Date
May 19, 2007, 07:47 UTC
Message-ID
<117956087914-git-send-email-junkio@cox.net>

Somebody wondered on #git if there is a way to avoid spending cycles and memory on certain objects in a repository, most notably huge image files (or it might have been porn video collection, but I do not recall the details).

Here is a quick-and-clean patch series to help such a repository.
 [PATCH 1/2] pack-objects: pass fullname down to add_object_entry()
 [PATCH 2/2] Teach "delta" attribute to pack-objects.

Although we give pack-objects the pathname for each blob, we used to hash it down before registering the object to object_entry array. The first one moves the call site to the hash function a bit, to give add_object_entry() to inspect the pathname.

The second patch teaches add_object_entry() to record if an entry should be exempt from the deltification process, and use the .gitattributes mechanism to tell which objects should be marked as such.

The patches are based on np/pack series, and should apply cleanly to 'next'.

Message 1 of 1 in “Avoid spending cycles to deltify binary guck”
  1. 0/2 Avoid spending cycles to deltify binary guckJunio C Hamano, May 19, 2007

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.