Large number of compiled dll's
Hello,
I have some projects which have lot of aspx files. I notice that for each
file, the ASP.NET compiles one .DLL in the Temporary ASP.NET folder + 3 or
for aditional files.
I think this slows the system down.
Is there any possibility to put all these files in one DLL - like to
precompile the whole site ?
Regards,
Bogdan
Re: Large number of compiled dll's
Are you using VS.NET?
"Bogdan Nedelcu" <bogdan._sterge_nedelcu [at] team_STERGE_net.ro> wrote in
message news:eswB$qZIFHA.3484 [at] TK2MSFTNGP12.phx.gbl...
> Hello,
>
> I have some projects which have lot of aspx files. I notice that for each
> file, the ASP.NET compiles one .DLL in the Temporary ASP.NET folder + 3 or
> for aditional files.
>
> I think this slows the system down.
>
> Is there any possibility to put all these files in one DLL - like to
> precompile the whole site ?
>
> Regards,
> Bogdan
>
Re: Large number of compiled dll's
I'm using VS.NET 2003, .NET 1.1
Re: Large number of compiled dll's
Well, hopefully you are using vs.net to compile you website. If this is the
case, there is no need to worry. Now, if you remove the CodeBehind
attribute and replace it with the Src attribute, then .net will compile your
page on the first request to that page.
"Bogdan Nedelcu" <bogdan._sterge_nedelcu [at] team_STERGE_net.ro> wrote in
message news:OplwjJaIFHA.3472 [at] TK2MSFTNGP09.phx.gbl...
>
> I'm using VS.NET 2003, .NET 1.1
>
>
>
Re: Large number of compiled dll's
Sorry but I don't think I understand what you mean.
Can you detail a bit more please.
From my knowledge, VS.NET doesn't compile the ASPX pages, only the
Codebehind (.cs) files, so only the ASP.NET framework is responsible for
compiling at first request. But this is actually the problem, if the page is
compilled at request time, it will generate a dll for each aspx file.
"Tampa.NET Koder" <anonymous [at] microsoft.com> wrote in message
news:OxFiqUaIFHA.2132 [at] TK2MSFTNGP14.phx.gbl...
> Well, hopefully you are using vs.net to compile you website. If this is
> the case, there is no need to worry. Now, if you remove the CodeBehind
> attribute and replace it with the Src attribute, then .net will compile
> your page on the first request to that page.
>
>
> "Bogdan Nedelcu" <bogdan._sterge_nedelcu [at] team_STERGE_net.ro> wrote in
> message news:OplwjJaIFHA.3472 [at] TK2MSFTNGP09.phx.gbl...
>>
>> I'm using VS.NET 2003, .NET 1.1
>>
>>
>>
>
>
Re: Large number of compiled dll's
Well then, you have answered your own question. Yes you are right, at
runtime the codebehind file and the aspx file gets compile into one file.
So, if this is the way that the asp.net team designed it, are you looking
for a way to bypass this model? To be honest, compiled code will never slow
you down, its a whole lot faster and scripting as previously done with ASP.
Maybe you should try other things, like turning off default settings like
Debug="false", EnableSessionState="false", etc. Keeping these settings on if
you have no use for them does have a performance hit. Otherwise, I would
wait for someone else to reply to see if they have a solution for you.
"Bogdan Nedelcu" <bogdan._sterge_nedelcu [at] team_STERGE_net.ro> wrote in
message news:%23rNIgXaIFHA.1996 [at] TK2MSFTNGP12.phx.gbl...
> Sorry but I don't think I understand what you mean.
>
> Can you detail a bit more please.
>
> From my knowledge, VS.NET doesn't compile the ASPX pages, only the
> Codebehind (.cs) files, so only the ASP.NET framework is responsible for
> compiling at first request. But this is actually the problem, if the page
> is compilled at request time, it will generate a dll for each aspx file.
>
> "Tampa.NET Koder" <anonymous [at] microsoft.com> wrote in message
> news:OxFiqUaIFHA.2132 [at] TK2MSFTNGP14.phx.gbl...
>> Well, hopefully you are using vs.net to compile you website. If this is
>> the case, there is no need to worry. Now, if you remove the CodeBehind
>> attribute and replace it with the Src attribute, then .net will compile
>> your page on the first request to that page.
>>
>>
>> "Bogdan Nedelcu" <bogdan._sterge_nedelcu [at] team_STERGE_net.ro> wrote in
>> message news:OplwjJaIFHA.3472 [at] TK2MSFTNGP09.phx.gbl...
>>>
>>> I'm using VS.NET 2003, .NET 1.1
>>>
>>>
>>>
>>
>>
>
>
Re: Large number of compiled dll's
ASP.NET 1.x does try to compile all pages in a directory into a single
assembly when the first page from a directory is requested.
There are some settings that can modify this behavior:
1) In <compilation> the debug attribute is set to true.
2) In <compilation> the batchCompile attribute is set to false.
3) Pages in the directory are using different languages.
4) Pages in the directory are updated after the initial batch compile.
Probably reason #1 is why you don't have a batch compile happening.
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sat, 5 Mar 2005 19:08:00 +0200, "Bogdan Nedelcu"
<bogdan._sterge_nedelcu [at] team_STERGE_net.ro> wrote:
>Sorry but I don't think I understand what you mean.
>
>Can you detail a bit more please.
>
>From my knowledge, VS.NET doesn't compile the ASPX pages, only the
>Codebehind (.cs) files, so only the ASP.NET framework is responsible for
>compiling at first request. But this is actually the problem, if the page is
>compilled at request time, it will generate a dll for each aspx file.
>
>"Tampa.NET Koder" <anonymous [at] microsoft.com> wrote in message
>news:OxFiqUaIFHA.2132 [at] TK2MSFTNGP14.phx.gbl...
>> Well, hopefully you are using vs.net to compile you website. If this is
>> the case, there is no need to worry. Now, if you remove the CodeBehind
>> attribute and replace it with the Src attribute, then .net will compile
>> your page on the first request to that page.
>>
>>
>> "Bogdan Nedelcu" <bogdan._sterge_nedelcu [at] team_STERGE_net.ro> wrote in
>> message news:OplwjJaIFHA.3472 [at] TK2MSFTNGP09.phx.gbl...
>>>
>>> I'm using VS.NET 2003, .NET 1.1
>>>
>>>
>>>
>>
>>
>
Re: Large number of compiled dll's
Answer accepted ;)
Thank you very much.
"Scott Allen" <scott [at] nospam.odetocode.com> wrote in message
news:ifmm21hpv5qr0e062n0el01kokamrlr42k [at] 4ax.com...
> ASP.NET 1.x does try to compile all pages in a directory into a single
> assembly when the first page from a directory is requested.
>
> There are some settings that can modify this behavior:
>
> 1) In <compilation> the debug attribute is set to true.
>
> 2) In <compilation> the batchCompile attribute is set to false.
>
> 3) Pages in the directory are using different languages.
>
> 4) Pages in the directory are updated after the initial batch compile.
>
> Probably reason #1 is why you don't have a batch compile happening.
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>
>
> On Sat, 5 Mar 2005 19:08:00 +0200, "Bogdan Nedelcu"
> <bogdan._sterge_nedelcu [at] team_STERGE_net.ro> wrote:
>
>>Sorry but I don't think I understand what you mean.
>>
>>Can you detail a bit more please.
>>
>>From my knowledge, VS.NET doesn't compile the ASPX pages, only the
>>Codebehind (.cs) files, so only the ASP.NET framework is responsible for
>>compiling at first request. But this is actually the problem, if the page
>>is
>>compilled at request time, it will generate a dll for each aspx file.
>>
>>"Tampa.NET Koder" <anonymous [at] microsoft.com> wrote in message
>>news:OxFiqUaIFHA.2132 [at] TK2MSFTNGP14.phx.gbl...
>>> Well, hopefully you are using vs.net to compile you website. If this is
>>> the case, there is no need to worry. Now, if you remove the CodeBehind
>>> attribute and replace it with the Src attribute, then .net will compile
>>> your page on the first request to that page.
>>>
>>>
>>> "Bogdan Nedelcu" <bogdan._sterge_nedelcu [at] team_STERGE_net.ro> wrote in
>>> message news:OplwjJaIFHA.3472 [at] TK2MSFTNGP09.phx.gbl...
>>>>
>>>> I'm using VS.NET 2003, .NET 1.1
>>>>
>>>>
>>>>
>>>
>>>
>>
>