Hey, finally! I just published a new - and real - blog post "10x Performance with SIMD Vectorized Code in C#/.NET" https://xoofx.com/blog/2023/07/09/10x-performance-with-simd-in-csharp-dotnet/ πŸŽ‰

That was a quick write up, so my apologize for the poor phrasing, after 3 years without writing a blog post, I feel rusty. But it feels good to share again! πŸ€— #dotnet

10x Performance with SIMD Vectorized Code in C#/.NET | xoofx

@xoofx great post, this is basically Sep πŸ‘is there a reason for doing permute *before* pack unsigned saturate?

@nietras oh, good catch! πŸ™‚ No reasons, I think I missed the fact that I could use _mm256_permute4x64_epi64 after instead of performing the swap before. It helps saving 3 permutes in the end, not bad! Thanks for the suggestion.

I have updated the blog post and added a link to Sep at the end of the article: That's actually a good example of real world usage of intrinsics for performance benefits! πŸ˜‰

@xoofx thanks ☺️
@xoofx of course the generic versions can be improved too given there is ExtractMostSignificantBits (generic move mask) and not sure pack saturated is needed, can just Narrow. So should actually be able to make this fully generic. I think πŸ˜…
@nietras yeah, definitely could be, I took the original code without digging further, anyway, I'm back to my holidays, I won't check that until next week! πŸ˜ŽπŸ–οΈ
@xoofx Now with Burst Intrinsics!
@tjheuvel naan, the truth is that it wouldn't make a dime change. Burst and its intrinsics wouldn't be able to optimize more than this. πŸ˜‰
We are working on bringing support for System.Runtime.Intrinsics.x86 and ARM in the future that should hopefully obsolete Burst intrinsics.

@xoofx Curiousity got the better of me, but i cant get it to work at all.

For some reason SseSupported returns false, in an IL2CPP build using the performance test framework. Burst AOT settings has everything on too...

@xoofx great post Alex! Great to see you writing again man. πŸ€—
@xoofx meant to say, it looks like your RSS feed is empty? I use NetNewsWire to subscribe to things, was surprised when I added your site there was no posts!
@neilhenning oh, I will have to double check, it should generate something but I never really tried with a real RSS reader!
@neilhenning Finally took the time to have a look: I had to fix my static web site generator that I probably broke in some past versions. Discovered also that my 404 redirect page was no longer generated correctly. Thanks for letting me know, hopefully should be good now! 🀞