improve hash speed
Merge pull request #2248 from WalterBright/tweak-hash

tweak rehash threshhold