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

Re: [RFC PATCH] Make gitk use --early-output

From
David Kastrup <dak@gnu.org>
Date
Nov 4, 2007, 18:28 UTC
Message-ID
<85fxzlrhk8.fsf@lola.goethe.zz>
In-Reply-To
<18221.2285.259487.655684@cargo.ozlabs.ibm.com>
Paul Mackerras <paulus@samba.org> writes:
Show 12 quoted lines
> This makes gitk use the --early-output flag on the git log command.
>
> When gitk sees the "Final output:" line from git log, it goes into a
> mode where it basically just checks that it is getting the commits
> again in the same order as before.  If they are, well and good; if
> not, it truncates its internal list at the point of difference and
> proceeds to read in the commits in the new order from there on, and
> re-does the graph layout if necessary.
>
> This gives a much more immediate feel to the startup; gitk shows its
> window with the first screenful of commits displayed very quickly this
> way.

This is not strictly related with the patch: would it be possible to let gitk just stall reading from git-rev-list if it has rendered enough content on-screen? The behavior I have with gitk on enormous repositories now is that it starts up reasonably fast and nice and then proceeds to suck up all memory in the background.

Particularly annoying is that closing its window appears to work, but wish will still proceed sucking up all the pending git-rev-list output and allocating memory for it before it will actually exit.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Previous: Linus Torvalds
Message 8 of 8 in “Make gitk use --early-output”
  1. Make gitk use --early-outputPaul Mackerras, Nov 3, 2007
  2. Michael J. CohenNov 4, 2007
  3. Linus TorvaldsNov 4, 2007
  4. Marco CostalbaNov 4, 2007
  5. Paul MackerrasNov 4, 2007
  6. Marco CostalbaNov 4, 2007
  7. Linus TorvaldsNov 4, 2007
  8. David KastrupNov 4, 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.