- Have a deeply recursive function in
- Rewrite it naively in
- Compile with `cargo build --release`
- Notice it is now 10× *slower*

…hmm, that wasn't what I expected!


In case anyone has any thoughts about why the rust version could be so much slower than the javascript version, I decided to ask about it on r/rust here: reddit.com/r/rust/comments/ady

cc: @zalandocalrissian that has links to the code

Sign in to participate in the conversation

Fosstodon is a Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.