password-hashes icon indicating copy to clipboard operation
password-hashes copied to clipboard

argon2: add workaround for big 64-byte aligned allocations?

Open newpavlov opened this issue 9 months ago • 5 comments

It was previously discussed in #566.

The claim is that for big allocations we can get higher performance by allocating len + 64 bytes with 1-byte alignment (we then can manually construct a 64-byte aligned region in the allocated memory with size len), than by directly allocating len bytes with 64-byte alignment.

cc @jonasmalacofilho

newpavlov avatar Mar 05 '25 13:03 newpavlov