3 ms·
Walkthrough: There is a post today demonstrated that rewriting Python Code in Rust got 100X speed up. https://news.ycombinator.com/item?id=35367520 https://ne
by akasakahakada 4y ago
Walkthrough:
There is a post today demonstrated that rewriting Python Code in Rust got 100X speed up.
https://news.ycombinator.com/item?id=35367520 https://news.ycombinator.com/item?id=35367520
(credit to EwanToo, who gave the link first)
Also the original author claimed that Numpy is not worth the effort because it is significantly slower.
So here is the demonstration of a piece of Numpy code, with 350X speed up over the original code.
tldr:
original Python: 1X
original Numpy: 7X
original Rust: 100X
new Numpy: 350X