Reduce the startup time of a .NET windows form application running a network drive

I have a simple Windows Forms.NET 2.0 application that starts from a network drive (e.g. \ MyServer \ MyShare \ app.exe). It is very simple and downloads only minimal .NET libraries. However, downloading still requires ~ 6-10 seconds. People think that something must be wrong, that the application is so small that it takes so long to load.

Are there any suggestions for improving startup speed?

+3
source share
5 answers

Sysinternals Process Explorer. "% JIT". , ngen . . CodeGuru ngen.

+5

JIT NGEN, , . , , , . , .

+3

Clickonce , .

+1

You can trick, like Microsoft Office (and Adobe, I think), and add the application to the startup group, which tells the application to download and immediately upload. Thus, the DLL is pre-cached in memory when the user tries to start the application. Just to catch: I’m not quite sure if it works like this with network files, and if it’s not, it can be a reason for a slow start (i.e. you always make a cold start against a possible warm start if it is performed from the local machine).

0
source

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


All Articles