Quansight-Labs/numpy.net

Consider multitargeting to take advantage of newer .NET performance

lunarcloud opened this issue · 3 comments

https://learn.microsoft.com/en-us/nuget/create-packages/multiple-target-frameworks-project-file

<Project Sdk=”Microsoft.NET.Sdk”>
 <PropertyGroup>
 <TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
 </PropertyGroup> 
</Project>

When you package it, both dlls end up in the nuget

thanks for the tip. I am not sure what the advantage is.

Do you think that .net6.0 will offer higher performance than .netstandard2.0?

Do you think that .net6.0 will offer higher performance than .netstandard2.0?

Yes, definitely it will improve the memory usage and performance at least slightly (probably more than)

I experimented with this when you first suggested it. I was able to build multiple versions of the library. But then I tried to use the new library in a test/performance app and got all sorts of link errors. You may have heard that I started a new job recently so I am pretty busy at the moment. When I get some free time maybe I will take another peak at this.