--

I was totally geeking out while doing a head-to-head comparison of stack calls and recursion in Python and Rust. By the way, when I was writing this article, I had no idea about some pesky noises, so I had to use the `black_box` to remove noises. But hey, even with that little hiccup, we're still looking at an average execution time of around 600 milliseconds in release mode. You can refer to this link:

https://play.rust-lang.org/?version=stable&mode=release&edition=2021&gist=da4189c8c4f193b4cf409f9fe4984ab9

Not bad, huh? Thanks for dropping a comment! I've made the necessary updates to the article.

--

--

Mahmoud Harmouch
Mahmoud Harmouch

Written by Mahmoud Harmouch

Senior Blockchain Rust Enjoyer at GigaDAO - I occasionally write articles about data science, machine learning and Blockchain in Rust - Currently Writing Books

Responses (1)