Thank you for actually suggesting something! Many people say “this is unidiomatic/slow/unoptimal” but nobody is giving specifics. Thanks :)
btw the author is looking to improve the Rust version and is accepting contributions in that repo if you wanna improve the experiment