I have two assemblies, A.dll and B.dll.
A.dll contains two methods. One method, UsesB, uses a type from B.dll
whereas the other, DoesNotUseB, does not.
To cache a native image of A.dll with both methods precompiled, I believe I
can do
ngen A.dll B.dll
I think I could also do
ngen B.dll
ngen A.dll
Will just
ngen A.dll
also produce a native image of A.dll with both methods precompiled, or will
it precompile only the method that does *not* use types from B.dll? (or will
it precompile neither?)
In other words, does
ngen A.dll
resolve B.dll and use the metadata in B.dll to work out the physical layout
of the types in B.dll so that it can generate native code for A.UsesB(), or
does it need B.dll to be in the native image cache already, or do I actually
have to supply both dlls to ngen at the same time, ie
ngen A.dll B.dll
TIA 2 2714
"ngen A.dll" is not the same as "ngen A.dll B.dll". The latter will
pre-compile both assemblies.
"ngen A.dll" will load B automatically (through the normal assembly probing
logic), and compile both methods.
To prove it, run "ntsd ngen A.dll", you will see b.dll in the loaded module
list, assuming b.dll can be found by ngen.
"Wol" <mr***@hotmail.com> wrote in message
news:O8**************@TK2MSFTNGP10.phx.gbl... I have two assemblies, A.dll and B.dll.
A.dll contains two methods. One method, UsesB, uses a type from B.dll whereas the other, DoesNotUseB, does not.
To cache a native image of A.dll with both methods precompiled, I believe
I can do
ngen A.dll B.dll
I think I could also do
ngen B.dll ngen A.dll Will just
ngen A.dll
also produce a native image of A.dll with both methods precompiled, or
will it precompile only the method that does *not* use types from B.dll? (or
will it precompile neither?)
In other words, does
ngen A.dll
resolve B.dll and use the metadata in B.dll to work out the physical
layout of the types in B.dll so that it can generate native code for A.UsesB(),
or does it need B.dll to be in the native image cache already, or do I
actually have to supply both dlls to ngen at the same time, ie
ngen A.dll B.dll
TIA
The ngen image of A will use indirections (similar to IATs in the unmanaged
world) to access data from B.dll. (In the next version, these indirections
can be removed).
We will resolve the physical layout of types in B. So if B.dll changes, you
need to re-ngen A.dll as the old ngen image is/may be invalid and will not
be used anymore.
"Wol" <mr***@hotmail.com> wrote in message
news:O8**************@TK2MSFTNGP10.phx.gbl... I have two assemblies, A.dll and B.dll.
A.dll contains two methods. One method, UsesB, uses a type from B.dll whereas the other, DoesNotUseB, does not.
To cache a native image of A.dll with both methods precompiled, I believe
I can do
ngen A.dll B.dll
I think I could also do
ngen B.dll ngen A.dll Will just
ngen A.dll
also produce a native image of A.dll with both methods precompiled, or
will it precompile only the method that does *not* use types from B.dll? (or
will it precompile neither?)
In other words, does
ngen A.dll
resolve B.dll and use the metadata in B.dll to work out the physical
layout of the types in B.dll so that it can generate native code for A.UsesB(),
or does it need B.dll to be in the native image cache already, or do I
actually have to supply both dlls to ngen at the same time, ie
ngen A.dll B.dll
TIA
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Doug Holland |
last post by:
Hi There
If you have a .NET based application installed and you'd like to increase
the start-up performance of that application; can you NGen assemblies once
the application is installed?
The...
|
by: Will |
last post by:
Hi All,
* I have 2 dev machines, one is running WinXP Pro and one is running
Win2K Server. Each has Visual Studio .NET 7.0 installed (the .NET 1.0
dev tools.)
* I have a .NET .dll (let's call...
|
by: Laurence |
last post by:
So I had an 1D10T moment today: ran ngen /delete * and then compounded my error by closing the window. Of course now my window code starts far slower, but I don't want to blindly precompile...
|
by: JMMB |
last post by:
Just a confirmation.
NGen generates native code when i install the windows application on the
client or when I run it for the first time?
thanks,
|
by: Mark |
last post by:
I was hoping to use nGen to speed up the time taken for our web site to
start running. However, on the web we found this quote:
"NGen is not recommend for Asp.Net because the assemblies NGen...
|
by: Wol |
last post by:
I have two assemblies, A.dll and B.dll.
A.dll contains two methods. One method, UsesB, uses a type from B.dll
whereas the other, DoesNotUseB, does not.
To cache a native image of A.dll with...
|
by: musosdev |
last post by:
Hi guys
I've just read the article in this months MSDN about using Ngen to speed up
initial load times and I thought "great, I can speed up initial load of my
web app!".
However, having just...
|
by: Vince |
last post by:
My current project (a desktop application that’s currently developed on .net
v1.1) call for
1) Use ngen.exe to improve the startup speed.
2) Use multiple AppDomain to reduce the memory...
|
by: mcintyre321 |
last post by:
Hi all,
I am looking into NGen.exe to solve a problem. At my firm, when we upload new code to the live servers they take an age to start up. I've heard that NGen can speed this time by be JITing...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |