lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Sat, Aug 8, 2020 at 10:16 PM Sam Trenholme <> wrote:
> > No difference in speed.
> Note that there is about a 20% slowdown when we run the same benchmark
> as an i386 binary compiled with GCC 3.2.3 from 2002. SipHash is
> incredibly fast on a modern 64-bit processor because it can run its core
> algorithm using only four 64-bit registers. I would suspect that there
> would be less slowdown on a 32-bit ARM or other RISC architecture
> because they do not have the register starvation i386 has.

On i386-type processors less than 20 years old you could use SSE2
instructions to improve the performance. It won't be as fast as on a
64-bit architecture with plenty of registers, but it would still speed
things up.
Public domain code can be found here: