Re: how to speed up "git log"?
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 12, 2007, 06:06 UTC
- Message-ID
- <20070212060641.GC699@spearce.org>
- In-Reply-To
- <7vmz3kaugq.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 9 quoted lines
> I doubt it -- sliding mmap() in the current git, while is a good > change overall for handling really huge repos, would most likely > perform poorer than the fixed mmap() in 1.4.4 series on > platforms with slow mmap(), most notably on MacOS X. > > It _might_ be possible that turning some sliding mmap() calls > into pread() makes it perform better on MacOS X. > > I wonder what happens it git is compiled with NO_MMAP there...
So I ran three trials, v1.5.0-rc4-26-gcc46a74 with and without NO_MMAP against v1.4.4.4 on a freshly repacked git.git.
v150-mmap:
3.33 real 3.12 user 0.05 sys
3.32 real 3.12 user 0.05 sys
3.34 real 3.12 user 0.05 sysv150-nommap:
3.46 real 3.13 user 0.16 sys
3.43 real 3.13 user 0.16 sys
3.46 real 3.13 user 0.16 sysv1444-mmap:
3.30 real 3.09 user 0.05 sys
3.30 real 3.09 user 0.05 sys
3.25 real 3.09 user 0.04 sysCFLAGS="-O2"; the above timings are three representative samples out of 10 runs each, all hot cache.
Clearly the sliding mmap window isn't hurting us in this case by very much, and NO_MMAP really isn't helping matters at all.
-- Shawn.