J
Justin Galzic
Could explain how the .net assemblies (Dlls) work when they are used
by an exe -- I'd much appreciate it. If your exe is making a call to a
function that's part of the .net framework library (ie
System.Math.Ceiling), the amount of time taken up on the first call to
the specific function is usually about 80-90% more than when the
function is called again. Can someone explain to me why this works as
it does? I know that when you use a Dll, it's got to get loaded into
the system and map all of proc addresses for the functions into
memory. On the first call, are these mapping of the function to a
particular location in memory left blank and is the majority of time
spent filling in these mappings?
This brings up the question of whether there is a way to load the Dlls
you're going to use for a certain EXE and set it up so everything is
pre-cached? Is it possibly a setting for your project in Visual
Studio.net?
Apologies if this sounds vague but I'm not entirely familiar with this
stuff just yet.
Thanks,
Justin
by an exe -- I'd much appreciate it. If your exe is making a call to a
function that's part of the .net framework library (ie
System.Math.Ceiling), the amount of time taken up on the first call to
the specific function is usually about 80-90% more than when the
function is called again. Can someone explain to me why this works as
it does? I know that when you use a Dll, it's got to get loaded into
the system and map all of proc addresses for the functions into
memory. On the first call, are these mapping of the function to a
particular location in memory left blank and is the majority of time
spent filling in these mappings?
This brings up the question of whether there is a way to load the Dlls
you're going to use for a certain EXE and set it up so everything is
pre-cached? Is it possibly a setting for your project in Visual
Studio.net?
Apologies if this sounds vague but I'm not entirely familiar with this
stuff just yet.
Thanks,
Justin