git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "David Tweed" <david.tweed@gmail.com>
To: "Linus Torvalds" <torvalds@linux-foundation.org>
Cc: git@vger.kernel.org
Subject: Re: gitk performance questions/issues
Date: Mon, 13 Aug 2007 18:18:24 +0100	[thread overview]
Message-ID: <e1dab3980708131018h495c5cf2m76cb8f6ffc4df6dc@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.0.999.0708130945420.30176@woody.linux-foundation.org>

On 8/13/07, Linus Torvalds <torvalds@linux-foundation.org> wrote:
> Alternatively, maybe your repo has some odd structure (do you have tons
> and tons of branches or tags?) and "gitk" ends up having some problem with
> that. What does
>
>         git rev-parse --all | wc -l
>
> say? Various git tools have had performance problems with thousands of
> branches or tags in the past.

Ah, that's it: I've got
$ wc .git/packed-refs
  1915   3832 130178 .git/packed-refs
and 35 currently unpacked tags and temporarily moving that
file away, gitk now starts up virtually instantly. My usage generates
a tag per commit which is probably excessive. For completeness,
$ git rev-parse --all | wc -l
1957

Thinking about it, I suppose even if you're only looking at the last
256 commits you've got to look through all the tags to see whether
or not they refer to something within that window, so it's not
unreasonable for it to affect startup time.

The bit that is a quite surprising to me is that once the window has
finished initialising, clicking on one of the blue dots now (ie
without .git/packed-refs file) now generates the diffs instantly
as well. It's not obvious to me why the existence/non-existence
of tags should affect displaying-diff performance.

Anyway, now I know I can rearrange things not to need anything
like as many tags.

Many thanks for the help,

-- 
cheers, dave tweed__________________________
david.tweed@gmail.com
Rm 124, School of Systems Engineering, University of Reading.
"we had no idea that when we added templates we were adding a Turing-
complete compile-time language." -- C++ standardisation committee

  reply	other threads:[~2007-08-13 17:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-13  9:48 gitk performance questions/issues David Tweed
2007-08-13 16:59 ` Linus Torvalds
2007-08-13 17:18   ` David Tweed [this message]
2007-08-14  4:39     ` Paul Mackerras
2007-08-14 11:25       ` David Tweed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e1dab3980708131018h495c5cf2m76cb8f6ffc4df6dc@mail.gmail.com \
    --to=david.tweed@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).