git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-fsck/lost-found's speed vs git-prune's
@ 2007-09-18  9:09 Mike Hommey
  2007-09-18  9:14 ` Sam Vilain
  2007-09-18  9:18 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Hommey @ 2007-09-18  9:09 UTC (permalink / raw)
  To: git

Hi,

I was wondering if that was to be expected for git-fsck to be
significantly slower than git-prune (by several orders of magnitude) ?

$ time git-lost-found

real    8m22.167s
user    6m44.153s
sys     1m16.613s

$ time git-prune

real    0m0.376s
user    0m0.304s
sys     0m0.000s

Mike

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

* Re: git-fsck/lost-found's speed vs git-prune's
  2007-09-18  9:09 git-fsck/lost-found's speed vs git-prune's Mike Hommey
@ 2007-09-18  9:14 ` Sam Vilain
  2007-09-18  9:18 ` Junio C Hamano
  1 sibling, 0 replies; 5+ messages in thread
From: Sam Vilain @ 2007-09-18  9:14 UTC (permalink / raw)
  To: Mike Hommey; +Cc: git

Mike Hommey wrote:
> Hi,
>
> I was wondering if that was to be expected for git-fsck to be
> significantly slower than git-prune (by several orders of magnitude) ?
>
> $ time git-lost-found
>
> real    8m22.167s
> user    6m44.153s
> sys     1m16.613s
>
> $ time git-prune
>
> real    0m0.376s
> user    0m0.304s
> sys     0m0.000s
>   

You're probably already packed. I'd expect a similar speed difference
between git-fsck and git-fsck --full.

Sam.

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

* Re: git-fsck/lost-found's speed vs git-prune's
  2007-09-18  9:09 git-fsck/lost-found's speed vs git-prune's Mike Hommey
  2007-09-18  9:14 ` Sam Vilain
@ 2007-09-18  9:18 ` Junio C Hamano
  2007-09-18  9:50   ` Mike Hommey
  1 sibling, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-09-18  9:18 UTC (permalink / raw)
  To: Mike Hommey; +Cc: git

Mike Hommey <mh@glandium.org> writes:

> I was wondering if that was to be expected for git-fsck to be
> significantly slower than git-prune (by several orders of magnitude) ?

fsck validates objects are correct and sane.  prune only looks
at reachability.

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

* Re: git-fsck/lost-found's speed vs git-prune's
  2007-09-18  9:18 ` Junio C Hamano
@ 2007-09-18  9:50   ` Mike Hommey
  2007-09-18 11:13     ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Hommey @ 2007-09-18  9:50 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On Tue, Sep 18, 2007 at 02:18:44AM -0700, Junio C Hamano <gitster@pobox.com> wrote:
> Mike Hommey <mh@glandium.org> writes:
> 
> > I was wondering if that was to be expected for git-fsck to be
> > significantly slower than git-prune (by several orders of magnitude) ?
> 
> fsck validates objects are correct and sane.  prune only looks
> at reachability.

Now, the speed difference makes sense, but I wouldn't expect lost-found
to actually bother validating objects...

Mike

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

* Re: git-fsck/lost-found's speed vs git-prune's
  2007-09-18  9:50   ` Mike Hommey
@ 2007-09-18 11:13     ` Johannes Schindelin
  0 siblings, 0 replies; 5+ messages in thread
From: Johannes Schindelin @ 2007-09-18 11:13 UTC (permalink / raw)
  To: Mike Hommey; +Cc: Junio C Hamano, git

Hi,

On Tue, 18 Sep 2007, Mike Hommey wrote:

> On Tue, Sep 18, 2007 at 02:18:44AM -0700, Junio C Hamano <gitster@pobox.com> wrote:
> > Mike Hommey <mh@glandium.org> writes:
> > 
> > > I was wondering if that was to be expected for git-fsck to be
> > > significantly slower than git-prune (by several orders of magnitude) ?
> > 
> > fsck validates objects are correct and sane.  prune only looks
> > at reachability.
> 
> Now, the speed difference makes sense, but I wouldn't expect lost-found
> to actually bother validating objects...

That's why we should get rid of lost-found, and only keep the --lost-found 
option to git-fsck, to make it clear.

And I think that it is too rare that you lost objects and want to find 
them, to warrant a fast version of it.

Ciao,
Dscho

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

end of thread, other threads:[~2007-09-18 11:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-18  9:09 git-fsck/lost-found's speed vs git-prune's Mike Hommey
2007-09-18  9:14 ` Sam Vilain
2007-09-18  9:18 ` Junio C Hamano
2007-09-18  9:50   ` Mike Hommey
2007-09-18 11:13     ` Johannes Schindelin

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).