Re: git-svnimport failed and now git-repack hates me

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Friday, January 5, 2007 - 5:15 pm

On Fri, 5 Jan 2007, Linus Torvalds wrote:

Basically, this boils down to the same old issue: if you have a fixed 
access pattern (like SHA1_Update() over the whole buffer), you're actually 
likely to perform better with a loop of read() calls than with mmap.

So if we ONLY did the SHA1 thing, we shouldn't do mmap, we should just 
chunk things up into 16kB buffers or something, and read them.

But the mmap in pack-check _also_ ends up being for the subsequent object 
checking (with unpacking etc), so the mmap here actually is probably the 
right thing to do. I really wouldn't worry, unless we get people who 
report real problems (and I think the problems with svn-import of the huge 
KDE repos are all elsewhere, notably in teh SVN import itself, not in any 
pack handling ;)

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: git-svnimport failed and now git-repack hates me, Junio C Hamano, (Thu Jan 4, 1:22 pm)
Re: git-svnimport failed and now git-repack hates me, Junio C Hamano, (Fri Jan 5, 12:05 pm)
Re: git-svnimport failed and now git-repack hates me, Shawn O. Pearce, (Fri Jan 5, 12:39 pm)
Re: git-svnimport failed and now git-repack hates me, Junio C Hamano, (Fri Jan 5, 2:37 pm)
Re: git-svnimport failed and now git-repack hates me, Linus Torvalds, (Fri Jan 5, 2:57 pm)
Re: git-svnimport failed and now git-repack hates me, Linus Torvalds, (Fri Jan 5, 3:39 pm)
Re: git-svnimport failed and now git-repack hates me, Junio C Hamano, (Fri Jan 5, 3:48 pm)
Re: git-svnimport failed and now git-repack hates me, Linus Torvalds, (Fri Jan 5, 4:00 pm)
Re: git-svnimport failed and now git-repack hates me, Linus Torvalds, (Fri Jan 5, 4:02 pm)
Re: git-svnimport failed and now git-repack hates me, Junio C Hamano, (Fri Jan 5, 4:09 pm)
Re: git-svnimport failed and now git-repack hates me, Linus Torvalds, (Fri Jan 5, 4:17 pm)
Re: git-svnimport failed and now git-repack hates me, Junio C Hamano, (Fri Jan 5, 4:44 pm)
Re: git-svnimport failed and now git-repack hates me, Junio C Hamano, (Fri Jan 5, 4:58 pm)
Re: git-svnimport failed and now git-repack hates me, Linus Torvalds, (Fri Jan 5, 4:59 pm)
Re: git-svnimport failed and now git-repack hates me, Johannes Schindelin, (Fri Jan 5, 5:06 pm)
Re: git-svnimport failed and now git-repack hates me, Linus Torvalds, (Fri Jan 5, 5:11 pm)
Re: git-svnimport failed and now git-repack hates me, Linus Torvalds, (Fri Jan 5, 5:15 pm)
Re: git-svnimport failed and now git-repack hates me, Junio C Hamano, (Fri Jan 5, 5:23 pm)
Re: git-svnimport failed and now git-repack hates me, Linus Torvalds, (Fri Jan 5, 6:22 pm)