On Sat, 11 Feb 2006, Junio C Hamano wrote:
It turns out that Johannes (with my patch to fix possible
unsigned int alignment issue and the initial call to
find_object()) is the clear winner.
Having looked at it, I will have to agree. Johannes' approach looks
pretty clean, and has the same memory overhead mine has (two pointers per
object in the hash - one used, one empty), but has a lot fewer memcmp()
calls and pointer chasing.
So I'll growl softly but concur. Johannes' code isn't even very complex.
Linus