-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multithreading performance #189
Comments
From a quick look into the code, I see the problem is in the var assembly = GetAssembly(target);
var dictionary = GetDictionary(target);
if (!string.IsNullOrEmpty(assembly) && !string.IsNullOrEmpty(dictionary))
GetResourceManager(assembly, dictionary); The result of the |
Where did you read that code, I can't find it in the current repo state. |
Strangely, |
The time consuming part is As far is i understand this event is refreshing all localized controls across threads. |
@Mahriel can you hunt the root of the problem? From your screenshot, I've though the problem is in the |
When But on every call the
Edit: |
So the problem is in So, when running on a single thread then the delay is acceptable? Try to remove all lines I have mentioned from |
Yes on a single thread the delay is fine. Removing When you look at the Callstack (sorry for the bad format) you can see the event is triggerd by WPF So i had a closer look at the |
AFAIK Each Loc tries to walk up the element tree and search for the nearest |
Every window and usercontrol has its own resx file so i'm setting one or both options. |
Try to set both |
@Mahriel it would be helpfull, if you add in a second PR a simple app with like 2 Windows / Threads to show the issue. When we can also debug this issue. |
@Mahriel I know that more than one year is over, but I started now to cleanup this project. |
@Mahriel PING?!? |
Hello @konne sorry for the late reply. |
Hi any news about this? |
I did some small research on this problem. The solution of @Mahriel makes sense: he is grouping objects by thread and calling |
Hey guys
I encountered a performance issue with views in separated threads.
In a single threaded environment, the dialog takes about 15-20 seconds but when I’m starting the same dialog on a different thread it's bumping up to 65-70 seconds.
As you can see below the "OnProviderChanged" is taking 80% of the time.
This dialog contains ~80 localized controls, the default values (dictionary, assembly, designculture) are set up like described in the wiki and i am using the latest version from nuget.
Could you maybe help me to solve this problem?
The text was updated successfully, but these errors were encountered: