News for hackers. Stuff that matters.
Re:Lessons learned from profiling an algorithm in Rust by carlmr on Sunday October 13, 2024 @01:24PM (#41829769)
Great writeup with easy to understand steps. One thing it's lacking though is in the conclusion. I'd like to see a comparison to the C++ implementation.
Re:Lessons learned from profiling an algorithm in Rust by efnx on Sunday October 13, 2024 @03:39PM (#41830893)
Yes, exactly. How close does it come after all those optimisations?
Re:Lessons learned from profiling an algorithm in Rust by urcyanide on Sunday October 13, 2024 @07:22PM (#41832630)
It has the same QPS as the C++ version for GIST dataset. While Rust has more SIMD, C++ has const generic. I guess there is still some space for future improvement.
Re:Lessons learned from profiling an algorithm in Rust by carlmr on Monday October 14, 2024 @02:47AM (#41834867)
Oh nice, the article already changed.

I can't quite imagine it's the exact same though in all metrics. Some graphs of measurement statistics would be even better.

Re:Lessons learned from profiling an algorithm in Rust by skavi on Sunday October 13, 2024 @10:45PM (#41833751)
https://parallel-rust-cpp.github.io/

This goes through seven iterations of optimization an algorithm in rust, comparing it to the equivalent c++ at each stage.