Re:Performance optimization, and how to do it wrong
by n4r9 on Friday March 07, 2025 @10:15AM
(#43290803)
I'm not too sure what the author thinks they did wrong! Perhaps implementing the first attempt before profiling, but... would it have made a difference in this scenario?
[ Parent
| on HN ]
Re:Performance optimization, and how to do it wrong
by Palomides on Friday March 07, 2025 @10:30AM
(#43290941)
not using uprof (or vtune for intel users) well seems like a misstep; it can give you the rate of branch prediction success, though that is arguably more a lack of knowledge/experience than a mistake
they're cool tools, I encourage anyone to mess with them
Re:Performance optimization, and how to do it wrong
by adgjlsfhk1 on Friday March 07, 2025 @10:39AM
(#43291025)
branch prediction rates wouldn't have helped here. the problem here is that even though the branch is predicted correctly ~99% of the time, the branch drops you to ipc of 1 because you can't speculate past a 2nd branch