473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Pre Compile

Hi All,
We are developing an ASP.NET applications in last three years. Now there are
240 assemblies in the whole application. You can guess that everytime after
modifying an ASP.NET page, it's very slow to load it up because of the first
time compilation. In takes 2-3 minutes in our case.
I am not sure whether the compilation time is related to the size of our
project or only relate to the size of the ASPX page. It becomes a major
problem as it slows down developers work. (Developers need to compile and
debug many many time a day...). I am looking for ways to speed it up, i.e.
will it help if we precompile some dlls, etc?

Please share you comments!

Thanks in advance
Ming


Nov 19 '05 #1
2 1192
If you're working with Visual Studio.Net, you can specify which DLLs are
built with each build. For example, you are not likely to be working on all
240 assemblies in your Solution. Turn off building for the ones you aren't
working on.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Ming Zhang" <mz****@mpsbc.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi All,
We are developing an ASP.NET applications in last three years. Now there
are 240 assemblies in the whole application. You can guess that everytime
after modifying an ASP.NET page, it's very slow to load it up because of
the first time compilation. In takes 2-3 minutes in our case.
I am not sure whether the compilation time is related to the size of our
project or only relate to the size of the ASPX page. It becomes a major
problem as it slows down developers work. (Developers need to compile and
debug many many time a day...). I am looking for ways to speed it up, i.e.
will it help if we precompile some dlls, etc?

Please share you comments!

Thanks in advance
Ming


Nov 19 '05 #2
Ming:

Kevin's suggestion will help you at compile time.

If the application is loading all these assemblies at *run-time* then
I must say 240 is an excessive number. You should really consider
refactoring into a smaller number.

With this many assemblies you can run into extraordinary problems.
Consider, for instance, just loading that many assemblies into memory.
If the base address for all the assemblies is the same (Project
Properties -> Configuration Properties -> Advanced -> Base Address)
then Windows has to relocate the dll to a different virtual address
and patch up pointers - this process can be expensive for 240 files.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 9 Feb 2005 11:38:23 -0800, "Ming Zhang" <mz****@mpsbc.com>
wrote:
Hi All,
We are developing an ASP.NET applications in last three years. Now there are
240 assemblies in the whole application. You can guess that everytime after
modifying an ASP.NET page, it's very slow to load it up because of the first
time compilation. In takes 2-3 minutes in our case.
I am not sure whether the compilation time is related to the size of our
project or only relate to the size of the ASPX page. It becomes a major
problem as it slows down developers work. (Developers need to compile and
debug many many time a day...). I am looking for ways to speed it up, i.e.
will it help if we precompile some dlls, etc?

Please share you comments!

Thanks in advance
Ming



Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: janeaustine50 | last post by:
Python's InteractiveInterpreter uses the built-in compile function. According to the ref. manual, it doesn't seem to concern about the encoding of the source string. When I hand in an unicode...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
15
by: steve yee | last post by:
i want to detect if the compile is 32 bits or 64 bits in the source code itself. so different code are compiled respectively. how to do this?
16
by: desktop | last post by:
I have read that using templates makes types know at compile time and using inheritance the types are first decided at runtime. The use of pointers and casts also indicates that the types will...
1
by: brianrpsgt1 | last post by:
Newbie here.... I have been able to successful pull info from a MySQL DB, get the results and output them in an HTML format using Cheetah to the screen using IDLE. I am doing this on a Windows...
3
by: NvrBst | last post by:
Right now I have C99 code in .c extensions. I compile it in VSC++ and it complains about a lot of errors. I change the extensions to .cpp and compile in VSC++ and it succeeds. Is there a way...
6
by: Ed Leafe | last post by:
I've noticed an odd behavior with compile() and code that does not contain a trailing newline: if the last line is a comment inside of any block, a syntax error is thrown, but if the last line is a...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.