This question already has an answer here:
这个问题在这里已有答案:
- What makes WPF application startup slow? 5 answers
是什么让WPF应用程序启动缓慢? 5个答案
I have an application written in native c++ (MFC). Some dialogs in this application are written in C# and WPF. when I start the dialog for the first time (cold start) - it takes a very long time, but another run is already fast (warm start). Is it possible to improve performance by loading the appropriate assemblies when the splash screen is viewing, but not when the dialog is started for the first time? If so, in what way?
我有一个用本机c ++(MFC)编写的应用程序。此应用程序中的某些对话框是用C#和WPF编写的。当我第一次启动对话框(冷启动)时 - 它需要很长时间,但另一次运行已经很快(热启动)。是否可以通过在查看启动屏幕时加载适当的程序集来提高性能,但是在第一次启动对话框时却没有?如果真是这样,那么是以哪种方式?
1 个解决方案
#1
0
Process your managed assemblies with ngen.exe during the installation of your software.
在安装软件期间使用ngen.exe处理托管程序集。
原生图像生成器
#1
0
Process your managed assemblies with ngen.exe during the installation of your software.
在安装软件期间使用ngen.exe处理托管程序集。
原生图像生成器