Why is my .net app terribly slow to start after rebooting the machine?

Does anyone know why it is so terribly slow to start a .net application after a reboot (for example, a cold start)?

After researching on google, I found some tips to speed it up, i.e.

  • Assembly assembly
  • Resource Language Setting
  • NGEN
  • GAC installation, etc.

Is that enough to make my .net application faster or something else there, am I missing?

+4
source share
4 answers

Another reason may be the collection of Authenticode signatures and the lack of an Internet connection. See Why are slow downloads of signed assemblies? and the WPF application is slow at startup .

+4
source

You can use ProcMon from SysInternals to profile your application at startup. This will record all registry / file access with a timestamp. It may indicate an area where there is a delay.

Also, do you have a lot of disk access during cold boot on your computer? Does your virus scanner perform a full scan at boot time?

+1
source

If you are pulling a large number of files from your hard drive, your system has not yet downloaded them. This may be the reason for a slow start.

In addition, if you did not give your system enough time to boot, it could still download other applications at the same time.

0
source

According to others, your computer probably still downloads other applications within the first few minutes after loading. Your hard drive (one of the slowest components) is busy trying to download these other applications and their related data.

If you have a second disk on your computer, try installing the application on a second disk. If the second drive is usually inactive during this time, I think the application will start much faster.

0
source

All Articles