Hi Joel.
I was reading through the .NET 6 performance blog that Stephen Toub published recently, and came across a section that reminded me of your object activation blog post. Apparently .NET 6 improves the performance of new T() for generic type activation. The relevant text is under the reflection section, search for "Activator.CreateInstance" to find the relevant paragraph. I thought it might be interesting to compare whether your cached-emit-activator approach is still a performance win in .NET 6, or if the simpler new T() approach is now on-par.
Hi Joel.
I was reading through the .NET 6 performance blog that Stephen Toub published recently, and came across a section that reminded me of your object activation blog post. Apparently .NET 6 improves the performance of
new T()for generic type activation. The relevant text is under the reflection section, search for "Activator.CreateInstance" to find the relevant paragraph. I thought it might be interesting to compare whether your cached-emit-activator approach is still a performance win in .NET 6, or if the simplernew T()approach is now on-par.