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

Re: faster egit history page and a pure java "gitk"

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 25, 2008, 08:09 UTC
Message-ID
<20080325080959.GG4759@spearce.org>
In-Reply-To
<20080325053649.GE4759@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> wrote:
Show 5 quoted lines
> "Roger C. Soares" <rogersoares@intelinet.com.br> wrote:
> 
> > But it wasn't that fast, it took some minutes to finish building the 
> > whole tree. Also, changing projects (different git repos) makes the cpu 
> > go very high, and what opened fast the first time takes minutes after...

Something else I noticed - the core.packedGit* settings make a difference on performance. On Windows XP with Java 6 I am getting much better performance (200 ms lower running time) by using a much smaller window size and disabling mmap:

	[core]
		packedGitWindowSize = 8k
		packedGitLimit = 10m
		packedGitMMAP = false

by default jgit is using mmap, as Robin has reported it runs faster that way for him. But I have never been able to reproduce that on Mac OS 10.4/Java 5 or Windows XP/Java 6. In both systems setting mmap to false has performed better, even on the initial first set of hits to the cache where we have to read in the blocks vs. mmap them. The ByteBuffer API is just that much slower than accessing a byte[] directly when shoving it through inflate. We spend at least 30% of our time in inflate.

-- 
Shawn.
Previous: Shawn O. PearceNext: Roger C. Soares
Message 12 of 16 in “faster egit history page and a pure java "gitk"”
  1. Shawn O. PearceMar 24, 2008
  2. Roger C. SoaresMar 24, 2008
  3. Robin RosenbergMar 24, 2008
  4. Shawn O. PearceMar 25, 2008
  5. Roger C. SoaresMar 25, 2008
  6. Robin RosenbergMar 24, 2008
  7. Shawn O. PearceMar 25, 2008
  8. Robin RosenbergMar 24, 2008
  9. Shawn O. PearceMar 25, 2008
  10. Roger C. SoaresMar 25, 2008
  11. Shawn O. PearceMar 25, 2008
  12. Shawn O. PearceMar 25, 2008
  13. Roger C. SoaresMar 25, 2008
  14. Robin RosenbergMar 25, 2008
  15. Roger C. SoaresMar 26, 2008
  16. Shawn O. PearceMar 26, 2008

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.