|
|
|
|
|
by Const-me
962 days ago
|
|
> AVX instructions, which is implemented for quite a few LINQ methods Are you sure? Any examples of such methods? And does AVX actually helps? I don’t think that’s possible because IMO AVX and other SIMD can only help for dense inputs. The C# type is ReadOnlySpan, however ReadOnlySpan doesn’t implement IEnumerable and therefore incompatible with LINQ. There’s even an alternative LINQ to workaround https://github.com/NetFabric/NetFabric.Hyperlinq but that thing is a third-party library most people aren’t using. |
|
- https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...
- https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...