2 ms·
I think only when you think this kind of calculation is actually the hotspot of your code, and you should put a lot of effort to optimize it, then you could con
by ammo1662 2y ago
I think only when you think this kind of calculation is actually the hotspot of your code, and you should put a lot of effort to optimize it, then you could consider to do such things.
It is not something about complexity and code size, it is about the performance optimization.
I used to optimize a C++ application with SIMD intrinsics. The most time consuming function of this app is a linear algebra algorithm. That could perfectly fit this kind of optimization.
However, writing this kind of code and debug it took me a lot of time. I would say for most of "normal" application, it is useless.
- kristianp 2y agoIn this case the code being optimised is in the framework, so it may be in the hotspot of some programs, but most aren't. The decision being made here is that faster is always better, but I wonder if that's the case. Is that 100 (say) instructions going to push other code or data out of L1?