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

'git log FILE' slow

From
YLYakov Lerner <iler.ml@gmail.com>
Date
Jul 11, 2007, 20:33 UTC
Message-ID
<f36b08ee0707111333q38004cb5x152f25e2055e2796@mail.gmail.com>
[git version 1.5.1.3]

'git-log FILE' takes 10-13 sec. What can I do to identify the reason ? 'git log >/dev/null' takes 0.1 sec (cached). On the cloned copy, the times are approximately same.

The 'git-count-objects -v' shows:

count: 9830 size: 241412 in-pack: 12080 packs: 18 prune-packable: 188 garbage: 0

The strace shows only thousands of sbrk during the 10-13 sec time (after some initial I/O). Ltrace, I was not able to complete, takes too much.

Yakov
Next: Linus Torvalds
Message 1 of 2 in “'git log FILE' slow”
  1. Yakov LernerJul 11, 2007
  2. Linus TorvaldsJul 11, 2007

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.