News for hackers. Stuff that matters.
Re:The Rust Performance Book (2020) by dang on Wednesday July 20, 2022 @02:15AM (#32162102)
Related:

The Rust Performance Book - https://news.ycombinator.com/item?id=25122178 - Nov 2020 (19 comments)

Re:The Rust Performance Book (2020) by staticassertion on Wednesday July 20, 2022 @01:06AM (#32161641)
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.

Re:The Rust Performance Book (2020) by nindalf on Wednesday July 20, 2022 @01:54AM (#32161952)
Re:The Rust Performance Book (2020) by pizza234 on Wednesday July 20, 2022 @04:41AM (#32163034)
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'.

Re:The Rust Performance Book (2020) by nnethercote on Wednesday July 20, 2022 @07:11PM (#32173632)
I didn't know about this. Thanks for the tip!
Re:The Rust Performance Book (2020) by bestouff on Wednesday July 20, 2022 @10:49AM (#32166518)
The part where it says that parking_lot's Mutex is faster then std's is obsolete since 1.62.0 IIRC.
Re:The Rust Performance Book (2020) by 3836293648 on Wednesday July 20, 2022 @11:08AM (#32166841)
Only on linux
Re:The Rust Performance Book (2020) by znwu on Sunday July 24, 2022 @03:23PM (#32216714)
Alongside with Windows long since 1.35 https://github.com/rust-lang/rust/pull/20367
Re:The Rust Performance Book (2020) by nnethercote on Wednesday July 20, 2022 @08:10PM (#32174165)
Thanks for the suggestion!