This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients eric.smith, jdemeyer, mark.dickinson, rhettinger, sir-sigurd, tim.peters
Date 2018-10-03.10:34:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538562854.12.0.545547206417.issue34751@psf.upfronthosting.co.za>
In-reply-to
Content
A (simplified and slightly modified version of) xxHash seems to work very well, much better than SeaHash. Just like SeaHash, xxHash also works in parallel. But I'm not doing that and just using this for the loop:

    for y in t:
        y ^= y * (PRIME32_2 - 1)
        acc += y
        acc = ((acc << 13) + (acc >> 19))  # rotate left by 13 bits
        acc *= MULTIPLIER

Plain xxHash does "y *= PRIME32_2" or equivalently "y += y * (PRIME32_2 - 1)". Replacing that += by ^= helps slightly with my new tuple test.
History
Date User Action Args
2018-10-03 10:34:14jdemeyersetrecipients: + jdemeyer, tim.peters, rhettinger, mark.dickinson, eric.smith, sir-sigurd
2018-10-03 10:34:14jdemeyersetmessageid: <1538562854.12.0.545547206417.issue34751@psf.upfronthosting.co.za>
2018-10-03 10:34:14jdemeyerlinkissue34751 messages
2018-10-03 10:34:14jdemeyercreate