author | Nicolas Pitre <nico@cam.org> | |
Tue, 19 Dec 2006 15:53:08 +0000 (10:53 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 20 Dec 2006 08:42:10 +0000 (00:42 -0800) | ||
commit | 6d2fa7f1b489c65e677c18eda5c144dbc5d614ab | |
tree | 70a79d44228403c478ed8db0f00c147726331c60 | tree | snapshot |
parent | 313ce8cee665447e4476d7e8985b270346a8e5a1 | commit | diff |
index-pack usage of mmap() is unacceptably slower on many OSes other than Linux
It was reported by Randal L. Schwartz <merlyn@stonehenge.com> that
indexing the Linux repository ~150MB pack takes about an hour on OS x
while it's a minute on Linux. It seems that the OS X mmap()
implementation is more than 2 orders of magnitude slower than the Linux
one.
Linus proposed a patch replacing mmap() with pread() bringing index-pack
performance on OS X in line with the Linux one. The performances on
Linux also improved by a small margin.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
It was reported by Randal L. Schwartz <merlyn@stonehenge.com> that
indexing the Linux repository ~150MB pack takes about an hour on OS x
while it's a minute on Linux. It seems that the OS X mmap()
implementation is more than 2 orders of magnitude slower than the Linux
one.
Linus proposed a patch replacing mmap() with pread() bringing index-pack
performance on OS X in line with the Linux one. The performances on
Linux also improved by a small margin.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
index-pack.c | diff | blob | history |