Dear all,
After experiencing some performances issues on my client side, we decided to give a try to some of the performance profilers to try to find the bottleneck or identify the guilty parts of the code.
Of course, as many performance investigations, the problems comes from various things, but something I find out is that the ComponentResourceManager.ApplyResources
of my user controls takes way too much time in the construction of my forms: more than 24% of the construction time is spent in the ApplyResources
inside the InitializeComponent()
.
This seems rather a lot for only "finding a resource string and putting it in it's container".
What is exactly done in the ComponentResourceManager.ApplyResources
? I guess more than searching the string, if not it wouldn't take that long.
Is there a way to enhance the performances of the localization? Our software is localized in several languages, so we do need to keep this multi-lingual feature.
Any recommendations regarding this issue?
Thanks!
PS: We are coding in C#, .NET 3.5 SP1.