Re: how to speed up "git log"?
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 12, 2007, 06:22 UTC
- Message-ID
- <20070212062224.GD699@spearce.org>
- In-Reply-To
- <7vmz3jaorx.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 8 quoted lines
> "Shawn O. Pearce" <spearce@spearce.org> writes: > > 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. > > I do not think freshly repacked git.git is a good test case for > a real-world workload where this really matters. Doesn't your > default pack window large enough to cover it with a single > window, or perhaps two at most?
Its one window, maybe two, as git.git is ~12 MiB and the window size is 1 MiB (NO_MMAP) or 32 MiB (with mmap).
On linux.git:
v150-mmap:
2.23 real 1.99 user 0.10 sys
2.19 real 1.98 user 0.10 sys
2.19 real 1.98 user 0.10 sysv150-nommap:
2.63 real 1.99 user 0.50 sys
2.67 real 1.98 user 0.51 sys
2.63 real 1.99 user 0.51 sysv1444:
2.15 real 1.94 user 0.09 sys
2.19 real 1.95 user 0.10 sys
2.16 real 1.94 user 0.10 sysAgain, we aren't too far away from v1.4.4.4, but the NO_MMAP clearly is hurting us, even on Mac OS X.
-- Shawn.