Re: git-diff-tree -M performance regression in 'next'
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Mar 13, 2006, 01:31 UTC
- Message-ID
- <Pine.LNX.4.64.0603121730310.3618@g5.osdl.org>
- In-Reply-To
- <Pine.LNX.4.64.0603121710110.3618@g5.osdl.org>
On Sun, 12 Mar 2006, Linus Torvalds wrote:
> > u64 value = *(u64 *)src; > src += 8; > hash = value % 4294967291u;
Btw, this assumes the "only hash every 8 bytes" at the source, in which case this is ok even on architectures that need aligned reads. For the non-aligned reads, you'd need your "shift the value" approach.
Linus