Subject: Re: [PATCH] don't use mmap() to hash files

From: Junio C Hamano <[email-masked]>
Date: Sat, 13 Feb 2010 17:37:21 -0800

Dmitry Potapov <[email-masked]> writes:

> If a mmapped file is changed by another program during git-add, it
> causes the repository corruption. Disabling mmap() in index_fd() does
> not have any negative impact on the overall speed of Git. In fact, it
> makes git hash-object to work slightly faster....
> ...
> I think more people should test this change to see its impact on
> performance. For me, it was positive. Here is my results:

I wasn't particularly impressed by the original problem description, but
this is a very interesting result.