Originally Posted by

**rgeldreich**
If the 2 matches fall into the same bucket, it then favors the match which has the lowest # of set bits in the delta byte. (The actual logic is a little more complex, but that's the gist of it. These rules only apply to matches >= 3 bytes. len2 matches are treated specially and I think the finder isn't as picky about them right now.)

Also, when choosing between two matches of equal length and match slot, the finder favors the match with the lowest value in the least significant 4 bits of the distance, because the 4 distance LSB's are separately coded into another Huffman table. I remember finding this to be a small win on some binary files, and it was cheap to add.