Git development
 help / color / mirror / Atom feed
* Slow "git rev-list origin/master --not --all" or "git fetch" slow when downloading nothing
@ 2008-11-05  9:38 Santi Béjar
  2008-11-05 17:32 ` Re* " Junio C Hamano
  2008-11-05 17:37 ` Linus Torvalds
  0 siblings, 2 replies; 5+ messages in thread
From: Santi Béjar @ 2008-11-05  9:38 UTC (permalink / raw)
  To: Git Mailing List

Hi *,

  In cold cache "git rev-list origin/master --not --all" is slow
reading many files:

cold cache:
$ /usr/bin/time git rev-list origin/master --not --all
0.03user 0.02system 0:04.57elapsed 1%CPU (0avgtext+0avgdata 0maxresident)k
77848inputs+0outputs (410major+1798minor)pagefaults 0swaps

hot cache:
$ /usr/bin/time git rev-list origin/master --not --all
0.01user 0.00system 0:00.06elapsed 31%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+2207minor)pagefaults 0swaps

I think that, in this particular case (when the arguments are the tips
of some of the branches), this should not read that many files.

Moreover, this is used in "git fetch" (git rev-list --quiet --objects
<list_of_remote_sha1> --not --all) to detect if all the objects are
reachable from the local repository. When nothing has changed in the
remote repository (so refs/<remote>/* has all the remote refs) the
"git fetch" could be almost instantaneous (even in coldcache), but
currently it is not because of the above.

Thanks,
Santi

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

end of thread, other threads:[~2008-11-05 22:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-05  9:38 Slow "git rev-list origin/master --not --all" or "git fetch" slow when downloading nothing Santi Béjar
2008-11-05 17:32 ` Re* " Junio C Hamano
2008-11-05 17:37 ` Linus Torvalds
2008-11-05 21:37   ` Santi Béjar
2008-11-05 22:08     ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox