PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

compiling asp.net code

 
 
Tony Johansson
Guest
Posts: n/a
 
      6th Jul 2011
Hello!

Assume I have a web site consisting of several pages. So on the web server I
store only the source code.
When a client is requesting a web page it must first be compiled into IL
code and then will the JIT compile the IL code into native machine code. Now
to my question. Is is a performance penalty to compile the source code into
IL code ?

I mean would it be better to compile the souce code into IL code and then
copy this IL code to the web server ?
Is that possible ?

//Tony


 
Reply With Quote
 
 
 
 
Jason Keats
Guest
Posts: n/a
 
      6th Jul 2011
Tony Johansson wrote:
> Assume I have a web site consisting of several pages. So on the web server I
> store only the source code.
> When a client is requesting a web page it must first be compiled into IL
> code and then will the JIT compile the IL code into native machine code. Now
> to my question. Is is a performance penalty to compile the source code into
> IL code ?
>
> I mean would it be better to compile the souce code into IL code and then
> copy this IL code to the web server ?
> Is that possible ?


You should look into the difference between the "ASP.NET Web Site" and
"ASP.NET Web Application" project types.

http://stackoverflow.com/questions/3...eb-application
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      7th Jul 2011
On 7/6/2011 7:13 AM, Tony Johansson wrote:
> Assume I have a web site consisting of several pages. So on the web server I
> store only the source code.
> When a client is requesting a web page it must first be compiled into IL
> code and then will the JIT compile the IL code into native machine code. Now
> to my question. Is is a performance penalty to compile the source code into
> IL code ?
>
> I mean would it be better to compile the souce code into IL code and then
> copy this IL code to the web server ?
> Is that possible ?


It is possible, but not necessary.

Let us say that the pages is viewed 10000 times before the app
is restarted.

1 x ASP.NET compile + 1 x JIT compile + 10000 x execute

is not much bigger than:

1 x JIT compile + 10000 x execute

Arne

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using asp.net code without compiling it .nLL Microsoft ASP .NET 1 6th Oct 2008 08:10 PM
compiling asp.net code as in vb6 Arejan Microsoft ASP .NET 4 28th Jun 2007 07:35 PM
compiling code Hari Microsoft VB .NET 2 17th Aug 2004 08:21 PM
Compiling C++ Code ArunPrakash Microsoft C# .NET 2 4th Feb 2004 06:56 AM
Re: Compiling code david epsom dot com dot au Microsoft Access VBA Modules 2 30th Jul 2003 12:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 PM.