git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-pack-objects gitattributes?
@ 2009-10-12 23:00 Nasser Grainawi
  2009-10-19 18:47 ` Nasser Grainawi
  0 siblings, 1 reply; 4+ messages in thread
From: Nasser Grainawi @ 2009-10-12 23:00 UTC (permalink / raw)
  To: Git Mailing List

Hello,

I'm trying to avoid doing delta compression on a number of large binary files. 
I got a suggestion to use $GIT_DIR/info/attributes and a line like this:
*.bin -delta

This doesn't seem to show a big improvement (and honestly I can't find where in 
the git-pack-objects source the value of this attribute is used).

Could someone shed some light on this attribute and any other improvements I 
could make for efficiently serving up a repo over git-daemon with near-weekly 
revisions of 100MB+ files?

Thanks,
Nasser

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-pack-objects gitattributes?
  2009-10-12 23:00 git-pack-objects gitattributes? Nasser Grainawi
@ 2009-10-19 18:47 ` Nasser Grainawi
  2009-10-19 19:15   ` Michael J Gruber
  0 siblings, 1 reply; 4+ messages in thread
From: Nasser Grainawi @ 2009-10-19 18:47 UTC (permalink / raw)
  Cc: Git Mailing List

Nasser Grainawi wrote:
> Hello,
> 
> I'm trying to avoid doing delta compression on a number of large binary 
> files. I got a suggestion to use $GIT_DIR/info/attributes and a line 
> like this:
> *.bin -delta
> 
> This doesn't seem to show a big improvement (and honestly I can't find 
> where in the git-pack-objects source the value of this attribute is used).
> 
> Could someone shed some light on this attribute and any other 
> improvements I could make for efficiently serving up a repo over 
> git-daemon with near-weekly revisions of 100MB+ files?
> 
> Thanks,
> Nasser

ping? any help? anyone?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-pack-objects gitattributes?
  2009-10-19 18:47 ` Nasser Grainawi
@ 2009-10-19 19:15   ` Michael J Gruber
  2009-10-20 16:34     ` Nasser Grainawi
  0 siblings, 1 reply; 4+ messages in thread
From: Michael J Gruber @ 2009-10-19 19:15 UTC (permalink / raw)
  To: Nasser Grainawi; +Cc: Git Mailing List

Nasser Grainawi venit, vidit, dixit 19.10.2009 20:47:
> Nasser Grainawi wrote:
>> Hello,
>>
>> I'm trying to avoid doing delta compression on a number of large binary 
>> files. I got a suggestion to use $GIT_DIR/info/attributes and a line 
>> like this:
>> *.bin -delta
>>
>> This doesn't seem to show a big improvement (and honestly I can't find 
>> where in the git-pack-objects source the value of this attribute is used).
>>
>> Could someone shed some light on this attribute and any other 
>> improvements I could make for efficiently serving up a repo over 
>> git-daemon with near-weekly revisions of 100MB+ files?
>>
>> Thanks,
>> Nasser
> 
> ping? any help? anyone?

Well, describing a reproducable test case would help... as well as
telling us your git version.

builtin-pack-objects.c certainly refers to the delta attribute, see
no_try_delta() and its callers.

Have you checked your attrs with git-check-attr? How do you measure the
improvements you expect?

Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-pack-objects gitattributes?
  2009-10-19 19:15   ` Michael J Gruber
@ 2009-10-20 16:34     ` Nasser Grainawi
  0 siblings, 0 replies; 4+ messages in thread
From: Nasser Grainawi @ 2009-10-20 16:34 UTC (permalink / raw)
  To: Michael J Gruber; +Cc: Git Mailing List

Michael J Gruber wrote:
> Nasser Grainawi venit, vidit, dixit 19.10.2009 20:47:
>> Nasser Grainawi wrote:
>>> Hello,
>>>
>>> I'm trying to avoid doing delta compression on a number of large binary 
>>> files. I got a suggestion to use $GIT_DIR/info/attributes and a line 
>>> like this:
>>> *.bin -delta
>>>
>>> This doesn't seem to show a big improvement (and honestly I can't find 
>>> where in the git-pack-objects source the value of this attribute is used).
>>>
>>> Could someone shed some light on this attribute and any other 
>>> improvements I could make for efficiently serving up a repo over 
>>> git-daemon with near-weekly revisions of 100MB+ files?
>>>
>>> Thanks,
>>> Nasser
>> ping? any help? anyone?
> 
> Well, describing a reproducable test case would help... as well as
> telling us your git version.

1.6.5

> 
> builtin-pack-objects.c certainly refers to the delta attribute, see
> no_try_delta() and its callers.

Oops, somehow missed that while looking at the code right above it. Thanks.

> 
> Have you checked your attrs with git-check-attr? How do you measure the
> improvements you expect?

I did check, it returns 'unset' like one would expect.

I guess the big problem is that I don't have a good test case. I would have
expected a 'git repack -adf' to spend less time saying "Compressing objects",
but that doesn't seem to be happening...

Oh, wait, never mind.
I was missing some of the binaries I was trying to skip. Adding some more 
exceptions to the attributes file dropped the "Compressing objects" time from 
20 minutes (or more) to maybe 10 seconds.

Thanks Michael!

Nasser

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-20 16:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 23:00 git-pack-objects gitattributes? Nasser Grainawi
2009-10-19 18:47 ` Nasser Grainawi
2009-10-19 19:15   ` Michael J Gruber
2009-10-20 16:34     ` Nasser Grainawi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).