<div dir="ltr"><div><div><div>Hi,<br><br></div>We were looking for faster non-cryptographic hash to be used for the gfid2path infra [1]<br>The initial testing was done with md5 128bit checksum which was a slow, cryptographic hash<br></div><div>and using it makes software not complaint to FIPS [2]<br></div><br></div><div>On searching online a bit we found out xxhash [3] seems to be faster from the results of <br>benchmark tests shared and lot of projects use it. So we have decided to us xxHash<br>and added following files to gluster code base with the patch [4]<br><br>    BSD 2-Clause License:<br>       contrib/xxhash/xxhash.c<br>       contrib/xxhash/xxhash.h<br><br>    GPL v2 License:<br>       tests/utils/xxhsum.c<br><br></div><div>NOTE: We have ignored the code guideline check for these files as maintaining it <br></div><div>further becomes difficult.<br></div><div><br></div><div>Please comment on the same if there are any issues around it.<br></div><div><br>[1] Issue: <a href="https://github.com/gluster/glusterfs/issues/139">https://github.com/gluster/glusterfs/issues/139</a><br>[2] <a href="https://en.wikipedia.org/wiki/Federal_Information_Processing_Standards" target="_blank">https://en.wikipedia.org/wiki/Federal_Information_Processing_Standards</a><br>[3] <a href="http://cyan4973.github.io/xxHash/">http://cyan4973.github.io/xxHash/</a><br>[4] <a href="https://review.gluster.org/#/c/17488/10">https://review.gluster.org/#/c/17488/10</a><br><br></div><br clear="all"><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Thanks and Regards,<br></div>Kotresh H R and Aravinda VK<br></div></div>
</div></div></div></div></div>