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?
source share