Re:Using vectorization in C# to boost performance
by kristianp on Tuesday December 10, 2024 @05:50PM
(#42382563)
In 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?
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.