20% faster with NetFramework than Dotnet9.0

107 views
Skip to first unread message

Snake David

unread,
Feb 20, 2025, 9:48:25 PM2/20/25
to Excel-DNA

Hello everyone! I hope everything is going well for you.


Recently, I encountered a puzzling issue: generally speaking, the latest .NET 9 should perform better than .NET Framework. However, in my actual testing, I found that in some performance-intensive UDF functions, .NET Framework outperforms .NET 9 by about 20%.


This function is a recursive subset sum function, and the entry function communicates with the recursive part through static public variables. I wonder if anyone has any insights into this issue?

Tokens: 3482 ↑1892 ↓1590
Reply all
Reply to author
Forward
0 new messages