VB .Net Performance

  • Thread starter Thread starter Ron
  • Start date Start date
R

Ron

Is there anyway to speed up the startup of VB .net apps. They seem slower
than vb6 both in startup and window loads and unloads including dialog
boxes.

Ron
 
never experienced that in VB.NET. In my experience, they are faster than VB6
apps. maybe it's specific to something you're doing in .NET?
 
Probably you are doing something time-consuming in code when you start up
your application (e.g. opening files, connection to a webservice, ...).

Otherwise you could consider using the Native Image Generator (Ngen.exe),
check out this page:
http://tinyurl.com/2or38
The Native Image Generator creates a native image from a managed assembly
and installs it into the native image cache on the local computer. The
native image cache is a reserved area of the global assembly cache. Once you
create a native image for an assembly, the runtime automatically uses that
native image each time it runs the assembly. You do not have to perform any
additional procedures to cause the runtime to use a native image. Running
Ngen.exe on an assembly allows the assembly to load and execute faster,
because it restores code and data structures from the native image cache
rather than generating them dynamically.
 
Ron,

..NET applications are JITed (just-in-time compiled) before they are actually
run. This is most likely what you perceive as the delay. You can use the
ngen.exe utility to pre-JIT your applications and eliminate the delayed
start-up.
 
Ron,

Does it always seem slow, or is it only the first time you run it? The .NET
runtime takes a little to load and execute your application.

Gabriele
 
Back
Top