3 ms·
The .NET JIT compiler absolutely does query CPUID flags and generates different optimized code depending on available features, as well as the performance profi
by simonask 6mo ago
The .NET JIT compiler absolutely does query CPUID flags and generates different optimized code depending on available features, as well as the performance profile of each CPU model. This is similar to always passing `-march=native` to GCC.
This can have a huge effect on a wide range of applications, not just those using particular CPU features. For example, each libc implementation typically has a separate implementation `memcpy()` for each set of CPU features.
- wg0 6mo agoOkay thank you. I need to read more on the subject the.
- icelusxl 6mo agoThe "Performance Improvements in .NET" blog lists the new JIT support for instruction sets each year. https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-9/ https://devblogs.microsoft.com/dotnet/performance-improvemen...