The Rust Performance Book (2020)(nnethercote.github.io)
nnethercote.github.io
The Rust Performance Book (2020)
https://nnethercote.github.io/perf-book/introduction.html
9 comments
Awesome. I actually started writing notes for something like this the other day. Will read asap :)
edit: Glad to see hashers at the top. This is one of the easiest wins you can get and it can be pretty significant.
I see some stuff that could be added. `dyn` vs static dispatch, for example. Do I just open an issue somewhere?
edit: Created issues.
edit: Glad to see hashers at the top. This is one of the easiest wins you can get and it can be pretty significant.
I see some stuff that could be added. `dyn` vs static dispatch, for example. Do I just open an issue somewhere?
edit: Created issues.
The "Profiling/Debug Info" chapter states that one needs to rebuild compiler and stdlib in order to profile the stdlib.
If I understand correctly, this can be accomplished via flag '-Zbuild-std'.
If I understand correctly, this can be accomplished via flag '-Zbuild-std'.
I didn't know about this. Thanks for the tip!
The part where it says that parking_lot's Mutex is faster then std's is obsolete since 1.62.0 IIRC.
Only on linux
Alongside with Windows long since 1.35 https://github.com/rust-lang/rust/pull/20367
Thanks for the suggestion!
The Rust Performance Book - https://news.ycombinator.com/item?id=25122178 - Nov 2020 (19 comments)