3 ms·
> As I added as edit on my comment, I think that the place for such optimizations is pure hand written Assembly, if they cannot be safely generated. Not feasib
by pcwalton 11y ago
> As I added as edit on my comment, I think that the place for such optimizations is pure hand written Assembly, if they cannot be safely generated.
Not feasible. Quoting DannyBee yet again: "Most applications have flat profiles. They have flat profiles because people have spent a lot of time optimizing them."
When your application has a flat profile, you're spending most of your time in most of your code. So by saying that only code written in assembler should be optimized, you're asking most large C/C++ users to rewrite their codebases in assembler or suffer an unacceptable performance hit. Not going to happen.
- pjmlp 11y ago> you're asking most large C/C++ users to rewrite their codebases in assembler or suffer an unacceptable performance hit. Not going to happen. I am aware of it. They rather rely on something that isn't guaranteed to even survive a minor upgrade of the same compiler, and always act surprised when they discover what compiler does and the standard says don't go always hand in hand. So no reason to complain when those long weekends come in to track down optimizer induced bugs.