Re: how to speed up "git log"?
- From
- Bruno Haible <bruno@clisp.org>
- Date
- Feb 17, 2007, 19:19 UTC
- Message-ID
- <200702172019.20536.bruno@clisp.org>
- In-Reply-To
- <20070211152840.GA2781@steel.home>
Alex Riesen wrote:
> MacOS X is famous for its bad perfomance when doing serious work. > The mmap(2) of it, in particular.
You can't blame MacOS X mmap(2) for git's slow execution of "git log". Here are is execution times of "git log tr.c > output"
- with git-1.5.0-rc4 built with -DNO_MMAP
real 0m26.032s
user 0m13.580s
sys 0m11.730s- with git-1.5.0-rc4 built with the default settings:
real 0m25.469s
user 0m13.530s
sys 0m11.490sYou can see that using mmap() provides a speedup of about 2% on MacOS X, which is similar to the 4% than Shawn measured on Linux.
Bruno