I have a choice for the assembly to target .netstandard2.0
or .net7.0
. If I do not need latest features of C#, will it eventually make any performance difference when running my application on .NET ?
AFAIK, JIT and types from BCL are provided by the runtime, so improvements in that area should have a positive impact on performance.
In theory C# compiler can emit IL which lacks some new instructions supported by newer runtime, so IL code can be slightly less optimal compared to what it would be, if .NET7 was targeted.
Am I missing anything what can hinder performance?