Subject: Re: how to speed up "git log"?

From: Bruno Haible <[email-masked]>
Date: Sat, 17 Feb 2007 20:19:20 +0100

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.490s

You 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