Git development
 help / color / mirror / Atom feed
From: James Utter <james.utter@gmail.com>
To: git@vger.kernel.org
Subject: strange git delays
Date: Fri, 21 Mar 2008 00:32:48 +1100	[thread overview]
Message-ID: <1206019968.27619.26.camel@localhost> (raw)

Hi,

Many git operations are running really slowly for me.
For example 'git commit' and 'git branch' are taking 10 seconds to
complete, even on an almost empty repository, and no longer on a 60MB
repository with plenty of history.

There does not appear to be any CPU or disk activity caused by git.

I would appreciate your help in resolving this problem.

Regards,

James Utter


Details of my environment:
-------------------------------
Linux 2.6.24-1-amd64 #1 SMP x86_64 (from debian testing) [1]
git-core 1:1.5.4.3-1 (from debian testing) [2]
Core 2 duo, 2Ghz

[1] I have been experiencing this problem across several kernels
[2] possibly over several git versions too (not sure)

Here is a test run on my computer
---------------------------------
james@timesink:~$ mkdir testgit
james@timesink:~$ cd testgit/
james@timesink:~/testgit$ time git init-db
Initialized empty Git repository in .git/

real	0m0.013s
user	0m0.000s
sys	0m0.008s
james@timesink:~/testgit$ echo "hai there" > hello
james@timesink:~/testgit$ time git add .

real	0m0.103s
user	0m0.000s
sys	0m0.004s
james@timesink:~/testgit$ time git commit --message "initial commit"
Created initial commit 4f4b3a3: initial commit
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 hello

real	0m10.008s
user	0m0.000s
sys	0m0.008s
james@timesink:~/testgit$ time git branch new

real	0m10.006s
user	0m0.000s
sys	0m0.004s
james@timesink:~/testgit$ time git branch -d new
Deleted branch new.

real	0m0.005s
user	0m0.000s
sys	0m0.004s
james@timesink:~/testgit$ echo "im in ur git\n slowin ur workflo" >>
hello
james@timesink:~/testgit$ time git commit -a --message "how long"
Created commit 2392de6: how long
 1 files changed, 1 insertions(+), 0 deletions(-)

real	0m10.059s
user	0m0.000s
sys	0m0.008s

             reply	other threads:[~2008-03-20 13:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-20 13:32 James Utter [this message]
2008-03-20 14:05 ` strange git delays Johannes Sixt
2008-03-20 14:19 ` Johannes Schindelin
2008-03-20 21:53 ` Linus Torvalds

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=1206019968.27619.26.camel@localhost \
    --to=james.utter@gmail.com \
    --cc=git@vger.kernel.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