3 ms·
Does anyone know of any guide/tutorials/books about how to avoid common Rust performance issues. Like real world examples, "instead of doing X, do Y". I am may
by graboid 4y ago
Does anyone know of any guide/tutorials/books about how to avoid common Rust performance issues. Like real world examples, "instead of doing X, do Y". I am maybe beginner to intermediate in Rust, but I think I'm still very susceptible to those things.
- pizza234 4y agoI've observed some level premature optimization in the Rust community, surely coming from being performance oriented. I received a review comment some time ago about changing a line of code in order to spare one allocation, for a call that was executed _once_ in the whole lifetime of a program. That was not the only time I've observed this attitude. I think starting with being handy with profiling and only after measurement, thinking about solutions, rather than starting with the idea that certain patterns are harmful per se.
- afdbcreid 4y agoThe Rust Performance Book - https://nnethercote.github.io/perf-book/ https://nnethercote.github.io/perf-book/.