compiling asp.net code

T

Tony Johansson

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
 
J

Jason Keats

Tony said:
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/398037/asp-net-web-site-or-web-application
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

just-in-time compiler 8
Behind C# compilations 3
Compiling code to dynamic method 5
How to I use Pre-JIT 1
symbol table 1
asp.net runtime understanding 8
more about MSIL code 2
pure mode versus mixed mode 1

Top