String Duplicates on WPF application

Hello,

when profiling wpf applications I always have those string duplicates and I they comes from XAML (later BAML) files

Is there a simple way as String.Intern to avoid such a duplication?

Thanks

 

1
1 comment

Hi Paolo,

You can fix "string duplicates" issues in your code by several ways which are described in this article:

https://blog.jetbrains.com/dotnet/2015/02/12/string-interning-effective-memory-management-with-dotmemory/

String duplicates made by WPF can't be fixed due to your app does not have access to the WPF internals.

 

0

Please sign in to leave a comment.