{"thread":{"id":"8218","subject":"[PATCH 0/2] Avoid spending cycles to deltify binary guck","startedAt":"2007-05-19T07:47:59Z","lastAt":"2007-05-19T07:47:59Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"42603","messageId":"117956087914-git-send-email-junkio@cox.net","threadId":"8218","inReplyTo":null,"subject":"[PATCH 0/2] Avoid spending cycles to deltify binary guck","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-05-19T07:47:59Z","receivedAt":"2007-05-19T07:47:59Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Somebody wondered on #git if there is a way to avoid spending\ncycles and memory on certain objects in a repository, most\nnotably huge image files (or it might have been porn video\ncollection, but I do not recall the details).\n\nHere is a quick-and-clean patch series to help such a repository.\n\n [PATCH 1/2] pack-objects: pass fullname down to add_object_entry()\n [PATCH 2/2] Teach \"delta\" attribute to pack-objects.\n\nAlthough we give pack-objects the pathname for each blob, we\nused to hash it down before registering the object to\nobject_entry array.  The first one moves the call site to the\nhash function a bit, to give add_object_entry() to inspect the\npathname.\n\nThe second patch teaches add_object_entry() to record if an\nentry should be exempt from the deltification process, and use\nthe .gitattributes mechanism to tell which objects should be\nmarked as such.\n\nThe patches are based on np/pack series, and should apply\ncleanly to 'next'.\n"}]}