Re: [PATCH 0/7] pack-objects: Create an alternative name hash algorithm (recreated)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Derrick Stolee <stolee@xxxxxxxxx> writes:

>>   (1) it hashes each path component separetely and rotates the whole
>>       thing only at a directory boundary.  I'd imagine that this
>>       would make a big difference for languages that force overly
>>       long filenames at each level.
>
> I was confused by the "rotates the whole thing only at a directory
> boundary" statement.

Yeah, I guess it was confusing.  What I meant was that the entire
result is shifted down with new material from left to right, but
unlike the original, the outer thing (i.e. what is given to the
caller as the result) is shifted only at the directory boundary, so
we are not as aggressive to lose early bits by shifting them down to
the right, as we are not shifting as fast as before.

> I think one way to say what you mean is
>
>   Each path component is hashed similarly to the standard name-hash,
>   and parent path component hashes are contributed via XOR after a
>   down-shift of 6 bits per level.

Yes.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux