Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: gitk (or tcl/tk) slow to start?

From: Michael J Gruber <hidden>
Date: 2016-06-15 22:48:49

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help