Re: Revisiting large binary files issue.
From: Peter Baumann <hidden>
Date: 2016-06-15 22:42:33
On 2006-07-10, Junio C Hamano [off-list ref] wrote:
Carl Baldwin [off-list ref] writes:quoted
First, I would like to be able to set the packing window to 0 for all of the git commands. It would be nice if I could set this in a per-repository config file so that any push/fetch operation would honor this window. Is there currently a way to do this?Should not be hard to add.quoted
Second, I would like to not pay the penalty to inflate and then deflate the objects into the pack when I use a window of 0. How hard would this be? I am a capable programmer and wouldn't mind getting my hands dirty in the code to implement this if someone could point me in the right direction.The problem is that unpacked objects have the single line header (type followed by its inflated size in decimal) which starts the deflated stream, while in-pack representation of non-delta does not. There was an attempt to help doing this, but I haven't pursued it. http://article.gmane.org/gmane.comp.version-control.git/17368
Wouldn't it make more sense to convert the unpacked object reprasentation to the one which is used in the pack files? This would make it really easy to just copy the object in the non-delta case to the pack and avoid the inflate/deflate calls. Peter Baumann