4 ms·
The Rust Performance Book (2020)
- staticassertion 4y agoAwesome. 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.
- nindalf 4y agohttps://github.com/nnethercote/perf-book https://github.com/nnethercote/perf-book
- dang 4y agoRelated: The Rust Performance Book - https://news.ycombinator.com/item?id=25122178 https://news.ycombinator.com/item?id=25122178 - Nov 2020 (19 comments)
- pizza234 4y agoThe "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'.
- nnethercote 4y agoI didn't know about this. Thanks for the tip!
- bestouff 4y agoThe part where it says that parking_lot's Mutex is faster then std's is obsolete since 1.62.0 IIRC.
- 3836293648 4y agoOnly on linux
- znwu 4y agoAlongside with Windows long since 1.35 https://github.com/rust-lang/rust/pull/20367 https://github.com/rust-lang/rust/pull/20367
- nnethercote 4y agoThanks for the suggestion!