On 12/24/2015 04:19 PM, Dimitry Sibiryakov wrote: > Hello, All. > > I played a little with hash calculation code from lock manager and > found that there is a room for improvement. > Attached test program compiled by GCC 4.7.1 with switches "-O3 > -msse4.2" shown that simple unroll of the loop makes it 2-3 times > faster. Current code is even slower than CPU-accelerated CRC32. > Comments?
Use of CPU-accelerated code appears suspicious from non-intel ports POV. What about unrolled loop - I like it. ------------------------------------------------------------------------------ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel