sha3 performance patch
Brought to you by:
aleksey14
This patch increases performance by 1.5 times, from 91 MB/s to 137 MB/s on my i5 system.
Changes are unrolling the loops using macros. You may want to change the macro names, I didn't know what to call them.
That's all the patches I have for now, for the best hash functions in my opinion.
Thank you very much for improving the algorithm. Your version is indeed faster on the Core i7 GCC-4.7.0 64-bit. I'll verify the productuctivity with other compilation settings latter.
But please, please, please send the next patches in the more standart and convenient *.patch format [1]! ;)
[1] http://docs.moodle.org/dev/How_to_create_a_patch
Ok, I'll do that.
Confirmed speed improvement on Intel Core i7 2.8GHz
Tests were run as:
Included into RHash v1.3.6.
Exact commit: cb44..16ee.