From: Linus Torvalds Date: Mon, 13 Mar 2006 01:31:39 GMT Subject: Re: git-diff-tree -M performance regression in 'next' Message-ID: In-Reply-To: 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