Rust Performance Pitfalls

Overall, Rust is pretty good for performance. Write the most simple stuff, and it will usually run within a factor of two from optimized C/C++ code. However, Rust makes some tradeoffs for different reasons than sheer speed, so here’s a handy list of some things that may bite you and how you can speed them up.

Article: https://llogiq.github.io/2017/06/01/perf-pitfalls.html
HN Discussion: https://news.ycombinator.com/item?id=14514591

4 Likes