I wrote an app in Visual Studio and is about 20k+ lines, but I don’t know why it takes so long to start up. I have a splash screen just to test it to see if the program is working, and it is, but I have to wait for so long for the app to actually get to the start up form. A splash screen for this app isn’t ideal, but was only using a splash screen for test purposes. Any ideas? Language is VB. It has 7 forms excluding the splash screen form.
Share
You could use NGEN and the GAC, however the subject is complex. You will find a good article from Microsoft on this subject here.
Usually your assemblies (exe’s, dll’s) contain IL code (Intermediate Language code). When you start the program this code is compiled just in time (it is jitted). NGEN will compile your assemblies to native code (Pentium code).
The GAC is the global assembly cache. If you put your NGENed code there, this will increase startup.