WPF runs super fast on one computer, but super slow on another

My wpf program has a strange problem regarding the performance of running on another computer with the same specifications. One computer loads my program in less than a second. Another computer with the same specification loads 10+ seconds.

Using Visualstudio Performance Profiler, I notice that two computers load a program in different ways! which is so strange.

My problem is basically the same as this post: C # WPF Very slow application launch

The performance profiler on a โ€œfastโ€ computer (I mean running the program quickly) shows that the program starts with System.Windows.Application. Run () , while "slow" indicates that it starts with System.Windows.Application. RunInternal (...)

With the additional โ€œinternalโ€ load time increases by 10 times, even if two computers have the same specification, and the source code is the same. (Actually, this is just a simple WPF mvvm light start file)

Any ideas?

+6
source share
3 answers
  • Log of not detected exceptions (at the application level).
  • See if users on both computers have the same level of authorization (both are admin, or rather not).

This should help.

0
source

Another check might be an antivirus. Is one machine real-time AV and the other not? Are users registered in the same groups? Both cars in one OU?

0
source

Check on both computers which services are running. Test both CPU usage in two scenarios by starting the application and after closing the application.

0
source

Source: https://habr.com/ru/post/945239/


All Articles