git/list[1] front-page[2] threads[3] people[4] search[5] about
 

gitk (or tcl/tk) slow to start?

From
Eli Barzilay <eli@barzilay.org>
Date
May 17, 2010, 10:58 UTC
Message-ID
<19441.8527.606063.296769@winooski.ccs.neu.edu>

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?

[This is using a new git version (1.7.1), but it's an old OS (Fedora 7), so maybe tcl/tk is buggy?]

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!
Next: Michael J Gruber
Message 1 of 4 in “gitk (or tcl/tk) slow to start?”
  1. Eli BarzilayMay 17, 2010
  2. Michael J GruberMay 17, 2010
  3. Eli BarzilayMay 18, 2010
  4. Michael J GruberMay 18, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.