From: "Shawn O. Pearce" <spearce@spearce.org>
To: "Roger C. Soares" <rogersoares@intelinet.com.br>
Cc: Robin Rosenberg <robin.rosenberg@dewire.com>, git@vger.kernel.org
Subject: Re: faster egit history page and a pure java "gitk"
Date: Tue, 25 Mar 2008 04:09:59 -0400 [thread overview]
Message-ID: <20080325080959.GG4759@spearce.org> (raw)
In-Reply-To: <20080325053649.GE4759@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> wrote:
> "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.
next prev parent reply other threads:[~2008-03-25 8:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 9:27 faster egit history page and a pure java "gitk" Shawn O. Pearce
2008-03-24 13:33 ` Roger C. Soares
2008-03-24 14:10 ` Robin Rosenberg
2008-03-25 4:43 ` Shawn O. Pearce
2008-03-25 12:33 ` Roger C. Soares
2008-03-24 14:06 ` Robin Rosenberg
2008-03-25 5:10 ` Shawn O. Pearce
2008-03-24 14:31 ` faster egit history page and a pure java "gitk" so Robin Rosenberg
2008-03-25 4:48 ` Shawn O. Pearce
2008-03-25 5:07 ` faster egit history page and a pure java "gitk" Roger C. Soares
2008-03-25 5:36 ` Shawn O. Pearce
2008-03-25 8:09 ` Shawn O. Pearce [this message]
2008-03-25 13:46 ` Roger C. Soares
2008-03-25 19:48 ` Robin Rosenberg
2008-03-26 1:37 ` Roger C. Soares
2008-03-26 4:52 ` Shawn O. Pearce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080325080959.GG4759@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg@dewire.com \
--cc=rogersoares@intelinet.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).