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

git-annotate - leaking hundrets of megabytes

From
Sven Herzberg <sven@imendio.com>
Date
Oct 23, 2007, 17:00 UTC
Message-ID
<471E28B2.7020508@imendio.com>
Hey,

I just started to write a small tool that's supposed to provide a graphical annotation view. It's supposed to display the information of git-annotate and provide a way to browse through the history (so people can click on links that refer to older revisions, etc.). According to the man page of git-annotate, I looked into the incremental mode to make sure the tool can load the information step by step.

However, to make sure the user interface doesn't block while "git-annotate --incremental" is running, I decided to take a really slow annotation while developing and then I saw that git-annotate leaks *lots* of memory (at least in that use-case).

In my example, it used up to 450MB: http://people.imendio.com/~sven/massif.18740.png

Reproduce:
1. git clone git://git.webkit.org/WebKit.git
2. cd WebKit/WebCore
3. git-annotate --incremental ChangeLog
Regards,
  Sven
PS: Please CC me as I'm not on the list.
Next: Linus Torvalds
Message 1 of 3 in “git-annotate - leaking hundrets of megabytes”
  1. Sven HerzbergOct 23, 2007
  2. Linus TorvaldsOct 23, 2007
  3. Florian WeimerOct 23, 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.