@Anonymous I actually did a Go implementation of this function and compiled it to .wasm using tinygo. I was able to get the file size under 256KB but the instruction count went to 71M. Thus, instruction count limit exceeded in Javascript as well as Go implementations. How sure can I be that this will not be the case if I implement it in Rust? I mean to understand what’s special about Rust implementation that can avoid this scenario.