[–] staticassertion 3y ago ↗ 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. [–] nindalf 3y ago ↗ https://github.com/nnethercote/perf-book
[–] dang 3y ago ↗ Related:The Rust Performance Book - https://news.ycombinator.com/item?id=25122178 - Nov 2020 (19 comments)
[–] pizza234 3y ago ↗ 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'. [–] nnethercote 3y ago ↗ I didn't know about this. Thanks for the tip!
[–] bestouff 3y ago ↗ The part where it says that parking_lot's Mutex is faster then std's is obsolete since 1.62.0 IIRC. [–] 3836293648 3y ago ↗ Only on linux [–] znwu 3y ago ↗ Alongside with Windows long since 1.35 https://github.com/rust-lang/rust/pull/20367 [–] nnethercote 3y ago ↗ Thanks for the suggestion!
[–] 3836293648 3y ago ↗ Only on linux [–] znwu 3y ago ↗ Alongside with Windows long since 1.35 https://github.com/rust-lang/rust/pull/20367
[–] znwu 3y ago ↗ Alongside with Windows long since 1.35 https://github.com/rust-lang/rust/pull/20367
9 comments
[ 3.0 ms ] story [ 36.8 ms ] threadedit: 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 Rust Performance Book - https://news.ycombinator.com/item?id=25122178 - Nov 2020 (19 comments)
If I understand correctly, this can be accomplished via flag '-Zbuild-std'.