daggre / lua-joaat

Jenkins one at a time (JOAAT) hash in lua
0 stars 0 forks source link

Benchmark #1

Open MOVZX opened 1 week ago

MOVZX commented 1 week ago

I just found this repo from browsing GitHub randomly, and I just tried the code snippet

image

daggre commented 1 week ago

Definitely appreciate you posting this, the intention for this snippet is for generating joaat hashes in lua scripts outside of FiveM/RedM. The provided GetHashKey and joaat functions would definitely be preferable for use in game, and importing a custom joaat hash function would be redundant and as you point out, less performant.

Out of curiosity, did you benchmark how using ` compares?

MOVZX commented 1 week ago

Using backtick ` same result as GetHashKey.