From: Michael J Gruber <git@drmicha.warpmail.net>
To: Eli Barzilay <eli@barzilay.org>
Cc: git@vger.kernel.org
Subject: Re: gitk (or tcl/tk) slow to start?
Date: Mon, 17 May 2010 13:51:02 +0200 [thread overview]
Message-ID: <4BF12DA6.9090709@drmicha.warpmail.net> (raw)
In-Reply-To: <19441.8527.606063.296769@winooski.ccs.neu.edu>
Eli Barzilay venit, vidit, dixit 17.05.2010 12:58:
> Every time I run gitk when I didn't use it for a while, it takes a
> long time to start (more than 30 seconds) with no visible cpu load. I
> tried to strace it, and the result shows that the time is spent
> stat()ing my whole /usr/lib directory:
>
> ...
> stat("/usr/lib/libelf-0.131.so", {st_mode=S_IFREG|0755, st_size=87496, ...}) = 0
> stat("/usr/lib/libungif.so.4", {st_mode=S_IFREG|0755, st_size=2444, ...}) = 0
> stat("/usr/lib/libtiff.so.3.8.2", {st_mode=S_IFREG|0755, st_size=360268, ...}) = 0
> ...
>
> Is this expected? Anything that can be done to avoid it?
I don't expect stat'ing /usr/lib to take 30s. How large is it (file size
and count)?
> [This is using a new git version (1.7.1), but it's an old OS (Fedora
> 7), so maybe tcl/tk is buggy?]
>
ver += 6 - epsilon ; /* :) */
Michael
next prev parent reply other threads:[~2010-05-17 11:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-17 10:58 gitk (or tcl/tk) slow to start? Eli Barzilay
2010-05-17 11:51 ` Michael J Gruber [this message]
2010-05-18 2:27 ` Eli Barzilay
2010-05-18 7:04 ` Michael J Gruber
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=4BF12DA6.9090709@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=eli@barzilay.org \
--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;
as well as URLs for NNTP newsgroup(s).