Re: cloning the kernel - why long time in "Resolving 313037 deltas"
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Dec 19, 2006, 08:32 UTC
- Message-ID
- <20061219083242.GF2511@spearce.org>
- In-Reply-To
- <Pine.LNX.4.64.0612182248420.3479@woody.osdl.org>
Linus Torvalds <torvalds@osdl.org> wrote:
Show 12 quoted lines
> On Tue, 19 Dec 2006, Shawn Pearce wrote: > > > > Why isn't git-index-pack doing the same? Is there some hidden glitch > > in some OS somewhere that has a problem with overmapping a file and > > appending into it via write()? I've done that on Mac OS X, Linux, > > BSDi, Solaris... never had a problem. > > It works on modern systems, but at least old HPUX versions had > non-coherent mmap() and write(), and POSIX does not guarantee it. And if > you ever want to port to Windows, I don't think you should do it. > > Anyway, try the pread() version first, see if that fixes the OS X problem.
It does. Without pread() (aka stock 'next') it takes me over an hour to index a pack of linux-2.6. With pread() its 1m6s to run index-pack on the same pack file. The indexes are (of course) identically produced.