Using vectorization in C# to boost performance
btburnett.com
Using vectorization in C# to boost performance
1–7 of 7 posts
Re: Using vectorization in C# to boost performance
#2Re: Using vectorization in C# to boost performance
#3Re: Using vectorization in C# to boost performance
#4Re: Using vectorization in C# to boost performance
#5Re: Using vectorization in C# to boost performance
#6So you've gone from a 10-line function to 120-lines for two functions. Is there a point at which the extra complexity and code size is considered not worth it?
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.
Re: Using vectorization in C# to boost performance
#7So you've gone from a 10-line function to 120-lines for two functions. Is there a point at which the extra complexity and code size is considered not worth it?
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 c…