Closed brycx closed 5 years ago
I'll double check and merge if it is indeed faster. With an old version of compiler (before rust 1.20) it was muuuch slower
Sounds great!
Also, do you have any news about the big-endian fix (issue: #15 , possible fix: #35)? I'm using tiny-keccak in another library myself and would like to know if you plan on resolving the issue.
Yes, these unsafe loops do not elide bounds checks correctly. I submitted a fix in https://github.com/debris/tiny-keccak/pull/8/commits/ccf709b13ed1e9512068c624e707cdc7d971ed66 that was idiomatic for highly optimized Rust, but I'm happy the compiler has improved its optimizations of truely idiomatic Rust.
There seems to be no performance regression. I actually noticed a small improvement.
With unsafe:
Without unsafe: