[Mono-list] ASP.Net Page taking minimum 11 sec to load first time

Mike Cleaver mike at moga.to
Wed May 28 03:56:33 EDT 2008


This is an issue that we have too, we have no code behind, just plain  
ASPX files used as views for a MVC style system.  The compilation time  
looks to me to be basically 1 second per ASPX/ASCX file regardless of  
complexity (core2 6400/osx).  So our main page has a master page and 3  
controls on it, giving it about 5 seconds of time to compile on first  
view.

Back in april Miguel posted:
> Compiler hosting inside ASP.NET: This will embed the whole compiler  
> into the ASP.NET process, eliminating about one second for each  
> compilation of a piece of code. In the past, for each request for an  
> uncompiled resource, we would have to call the compiler, wait for  
> its output and then load the output. This typically shaves between  
> 0.7 to 1 second on those scenarios, ideal to improve the developer  
> experience.

Any news on that front? It sounds like exactly the solution I'm after!


On 28/05/2008, at 12:37 AM, Marek Habersack wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, 21 May 2008 02:54:22 -0700 (PDT)
> haaroon <haaroons at gmail.com> wrote:
>
>>
>> Hi,
> Hi,
>
>> I am new to this forum. I am doing porting mono to my Linux  
>> embedded system
>> and my system Spec as follows...
>>
>> Hardware: -
>> CPU = x86
>> CPU Speed =500MHZ
>> RAM =512MB
>>
>> Software Version: -
>> Kernel Version 2.0.31
>> Mono 1.2.4
> You should consider upgrading your mono to 1.9
>
>> Mod-mono 1.9
>> Apache 2.2.8
>>
>> After porting the ASP.Net Page taking minimum 11 sec to load first  
>> time. And
>> second time onwards it’s coming faster. Once I rebooted my system  
>> the entire
> That's how ASP.NET works. On the first request it generates source  
> from all the
> referenced .as?x files and compiles it on the fly. Further requests  
> don't need that
> step so they are faster.
>
>> compiled library is flushed by the system and I have to recompile the
>> ASP.Net pages once again. Is there any way to hard code the library  
>> or is
>> there any way to improve the speed of my system performance?
> You can compile your code-behind to an assembly and store the  
> assembly in the bin/
> subdirectory of your website instead of using CodeFile inside  
> the .as?x files and
> code in the App_Code/ subdirectory of your web site. This will make  
> the first
> startup time slightly faster.
> There is no support for preserving the assemblies compiled from the  
> generated
> sources across application restart/server reboot.
>
> marek
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.4-svn0 (GNU/Linux)
>
> iD8DBQFIPDi5q3909GIf5uoRAp2MAJ9xme90Aqi38JC6z8lMukC+0DYmCwCfV5k4
> GuqBRlMS0VNOdilRUv/G7/A=
> =kaq0
> -----END PGP SIGNATURE-----
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

Mike Cleaver
mike at moga.to





More information about the Mono-list mailing list