Hi,
I have noticed that the memory consumption of the new .net Add-on is significantly higher than with the old WinForms version.
About half of the memory consumption comes from the CSharpProjectAssembly instances, where a lot of memory is wasted with string duplicates. I have counted 2.350.258 instances of "System" in a relatively small project with 9 projects.
With the old WinForms version we made some changes to the source code, to improve the situation. Since String.Intern() has the problem, that strings cannot be unloaded, we used a simple ConcurrentDictionary<string, string> instead to re-use existing string instances in high-memory environments. With the new WPF version we are trying to minimize the changes, so I would suggest you could adopt the idea.
Best regards, Tobias Lingemann.