News for hackers. Stuff that matters.
Re:Performance Showdown: Rust vs Javascript (2020) by taneq on Friday February 12, 2021 @07:50AM (#26113074)
I learned this back in uni, trying to optimize things with a friend who was an assembly language whiz. He could take one of my C(++) algorithms and hand code it to be 10x faster than I ever could... but sometimes I could come up with a new algorithm that was 100x faster. There's a reason we say algorithm optimisation >> cycle counting.
Re:Performance Showdown: Rust vs Javascript (2020) by lionkor on Friday February 12, 2021 @08:11AM (#26113233)
What I found is that the more you help the C++ compiler understand what you want the more optimized the code gets. Using std::fill_n instead of memset alone can cause good improvements, depending on the compiler.