You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support an efficient general purpose hashing function via XXH3-64. #64359
It's difficult to implement an efficient XXH3 in Dart, which is an efficient, non-cryptographic, general purpose hashing function.
(For the purposes of this issue, efficient is defined as reaching 80% of the performance of a native implementation on a recent arm64 machine.)
This has come up in #64065 where several people have expressed a more efficient hashing function could be useful for native hooks (cc @dcharkes) & package:analyzer (cc @scheglov).
Here are some rough numbers on an arm64 M5 machine:
Consider an efficient implementation like this one and notice that the main loop is vectorized. Good news, it looks like all of those are part of the Wasm SIMD API surface and therefore part of #64170.
Given the performance improvements of #64337, this looks like a useful stress test that even exercises some more obscure operations and I think the target of 80% is reasonable. The open question is how close appropriate SIMD primitives are going to get us.
Further investigations are blocked on an Int64x2 API.
Activity