473,503 Members | 1,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What's the point of precompiling a web site?

Hello,

I was just looking at aspnet_compiler.exe and thinking how useful it was
to have your web site compiled, then I thought that maybe it isn't!!

What's the advantage? I would never upload a site, nor even upload a new
version of one file, without immediately testing it a browser. Thus, any
first-time compilation delay will be seen by me.

Did I miss something? TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 23 '06 #1
10 1251
> I was just looking at aspnet_compiler.exe and thinking how useful it was
to have your web site compiled, then I thought that maybe it isn't!!

What's the advantage? I would never upload a site, nor even upload a new
version of one file, without immediately testing it a browser. Thus, any
first-time compilation delay will be seen by me.

Did I miss something? TIA


rumor says this first time compilation did not look good during public
presentations.

Wiktor Zychla

Feb 23 '06 #2
In article <OP*************@tk2msftngp13.phx.gbl>, "Wiktor Zychla [C#
MVP]" <wz*****@nospm.ii.uni.wroc.pl.nospm> writes
I was just looking at aspnet_compiler.exe and thinking how useful it
was to have your web site compiled, then I thought that maybe it isn't!!

What's the advantage? I would never upload a site, nor even upload a
new version of one file, without immediately testing it a browser.
Thus, any first-time compilation delay will be seen by me.

Did I miss something? TIA


rumor says this first time compilation did not look good during public
presentations.


Ah, another management-driven decision eh? It looked about that useful!!

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 23 '06 #3
re:
What's the advantage? I would never upload a site, nor even upload a new version of one file,
without immediately testing it a browser. Thus, any first-time compilation delay will be seen by
me.

Did I miss something? TIA


Of course, if you're running a site with 4,000 pages, it might take you a while
to call each page so it gets compiled so there's no appreciable delay the first
time any page is called by any client.

Might that be what you missed ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:Ra**************@nospamthankyou.spam...
Feb 23 '06 #4
In article <e8**************@TK2MSFTNGP14.phx.gbl>, Juan T. Llibre
<no***********@nowhere.com> writes
re:
What's the advantage? I would never upload a site, nor even upload a
new version of one file,
without immediately testing it a browser. Thus, any first-time
compilation delay will be seen by
me.

Did I miss something? TIA


Of course, if you're running a site with 4,000 pages, it might take you a while
to call each page so it gets compiled so there's no appreciable delay the first
time any page is called by any client.

Might that be what you missed ?


Could be, but then how often do you change that many pages in one go? A
site that big would probably be run from some sort of dynamic source,
no?

The other point is that the first-time hit isn't *that* significant, and
it only happens once, so even if a user were to experience it, they
probably wouldn't notice.

Comments? Thanks

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 23 '06 #5
I have similar doings but afaik IIS still compiles (from MSIL to PE..)
I can't tell if a pre-compiled situation is more speedy on the first hit?
So i wonder if it really helps.
I'm using it for distribution, i don't want to spread plain code.

Bad situation of pre-compiled is that you can't easily replace a single aspx
or so.
"Juan T. Llibre" <no***********@nowhere.com> schreef in bericht
news:e8**************@TK2MSFTNGP14.phx.gbl...
re:
What's the advantage? I would never upload a site, nor even upload a new
version of one file, without immediately testing it a browser. Thus, any
first-time compilation delay will be seen by me.

Did I miss something? TIA


Of course, if you're running a site with 4,000 pages, it might take you a
while
to call each page so it gets compiled so there's no appreciable delay the
first
time any page is called by any client.

Might that be what you missed ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:Ra**************@nospamthankyou.spam...

Feb 23 '06 #6
In article <dt**********@azure.qinip.net>, Edwin Knoppert
<in**@pbsoft.speedlinq.nl> writes
I have similar doings but afaik IIS still compiles (from MSIL to PE..)
I can't tell if a pre-compiled situation is more speedy on the first hit?
So i wonder if it really helps.
I'm using it for distribution, i don't want to spread plain code.
Why not? Anyone can decompile your compiled code, so what do you gain?
Bad situation of pre-compiled is that you can't easily replace a single aspx
or so.
Yup, that was one of the disadvantages that made me wonder if it was
worth it.
"Juan T. Llibre" <no***********@nowhere.com> schreef in bericht
news:e8**************@TK2MSFTNGP14.phx.gbl...
re:
What's the advantage? I would never upload a site, nor even upload a new
version of one file, without immediately testing it a browser. Thus, any
first-time compilation delay will be seen by me.

Did I miss something? TIA


Of course, if you're running a site with 4,000 pages, it might take you a
while
to call each page so it gets compiled so there's no appreciable delay the
first
time any page is called by any client.

Might that be what you missed ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:Ra**************@nospamthankyou.spam...



--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 23 '06 #7
Thus wrote Alan,
Hello,

I was just looking at aspnet_compiler.exe and thinking how useful it
was to have your web site compiled, then I thought that maybe it
isn't!!

What's the advantage? I would never upload a site, nor even upload a
new version of one file, without immediately testing it a browser.
Thus, any first-time compilation delay will be seen by me.

Did I miss something? TIA


I've also thought of pre-compilation as an overrated feature for exactly
that reason: You don't simply deploy a web app without doing a proper shakedown
test. Even if not, who really cares about the early bird user who has two
wait a second or two when hitting a page for the first time?

The remaining practical use case is assuring that all pages actually do compile
-- something that depending on how your pages are composed (think of dynamically
created server controls) could be rather hard to verify during testing.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Feb 23 '06 #8
1) You can prevent decompilation, not a discussion for now though.

2) The question from me was if a 4000+ page was faster if compiled on the
first hit then ordinary aspx pages.
I'm not sure, but i can't test that since i don't have such a situation.
"Alan Silver" <al*********@nospam.thanx.invalid> schreef in bericht
news:IQ**************@nospamthankyou.spam...
In article <dt**********@azure.qinip.net>, Edwin Knoppert
<in**@pbsoft.speedlinq.nl> writes
I have similar doings but afaik IIS still compiles (from MSIL to PE..)
I can't tell if a pre-compiled situation is more speedy on the first hit?
So i wonder if it really helps.
I'm using it for distribution, i don't want to spread plain code.


Why not? Anyone can decompile your compiled code, so what do you gain?
Bad situation of pre-compiled is that you can't easily replace a single
aspx
or so.


Yup, that was one of the disadvantages that made me wonder if it was worth
it.
"Juan T. Llibre" <no***********@nowhere.com> schreef in bericht
news:e8**************@TK2MSFTNGP14.phx.gbl...
re:
What's the advantage? I would never upload a site, nor even upload a
new
version of one file, without immediately testing it a browser. Thus,
any
first-time compilation delay will be seen by me.

Did I miss something? TIA

Of course, if you're running a site with 4,000 pages, it might take you
a
while
to call each page so it gets compiled so there's no appreciable delay
the
first
time any page is called by any client.

Might that be what you missed ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:Ra**************@nospamthankyou.spam...



--
Alan Silver
(anything added below this line is nothing to do with me)

Feb 23 '06 #9
On Thu, 23 Feb 2006 15:28:48 +0000, Alan Silver
<al*********@nospam.thanx.invalid> wrote:
Hello,

I was just looking at aspnet_compiler.exe and thinking how useful it was
to have your web site compiled, then I thought that maybe it isn't!!

What's the advantage? I would never upload a site, nor even upload a new
version of one file, without immediately testing it a browser. Thus, any
first-time compilation delay will be seen by me.

Did I miss something? TIA

Alan et al,

There are a couple advantages I can think of.

1) I can use the aspnet_compiler on a build engine to make sure there
are no errors in any of the .aspx files. If you do any sort of
continuous integration [1] in your CM process then you can let
developers know quickly if they checked in an ASPX file that the
runtime can't parse. I was never really happy that ASPX files could
escape the build process and make it to test before a simple syntax
error was caught.

2) I can pre-compile a non-updateble site and ensure that noone can
"tweak" an page in test or production. I could also deploy a site
without source any .aspx or .ascx files! (some caveats apply).

3) When combined with aspnet_merge I can reduce the number of
assemblies in a web app. A small performance benefit.

All that being said, using aspnet_compiler for performance reasons is
overrated. Getting a web application off the ground is a lot of work!
There is an appdomain to create, assemblies to resolve and load, the
cache is empty, the connection pool is empty, the JITter has to JIT,
etc. etc. The perf benefits of removing the parse/code-generation are
there, but can be dissapointing for someone who thinks it will be a
huge gain.

[1] http://www.martinfowler.com/articles...tegration.html
--
Scott
http://www.OdeToCode.com/blogs/scott/
Feb 24 '06 #10
In article <9d********************************@4ax.com>, Scott Allen
<sc***@nospam.odetocode.com> writes
<snip>
Alan et al,

There are a couple advantages I can think of.

1) I can use the aspnet_compiler on a build engine to make sure there
are no errors in any of the .aspx files. If you do any sort of
continuous integration [1] in your CM process then you can let
developers know quickly if they checked in an ASPX file that the
runtime can't parse. I was never really happy that ASPX files could
escape the build process and make it to test before a simple syntax
error was caught.
OK, I guess this is a good point for many people, but for me (lone
developer, no CM system), it's not so important.
2) I can pre-compile a non-updateble site and ensure that noone can
"tweak" an page in test or production.
Ditto previous comment ;-)
I could also deploy a site
without source any .aspx or .ascx files! (some caveats apply).
A benefit if you obfuscate, not otherwise - despite popular
(mis)conception.
3) When combined with aspnet_merge I can reduce the number of
assemblies in a web app. A small performance benefit.
OK, so all in all, I can happily ignore precompilation as it has little
advantage for me. I am in sole control of my server, so I don't have
much worry about people looking at my code. If they can get as far as
the code, they can probably just go straight into SQL Server, bypassing
my code. At that stage, I have more to worry about than my code!!

Thanks for the info.
All that being said, using aspnet_compiler for performance reasons is
overrated. Getting a web application off the ground is a lot of work!
There is an appdomain to create, assemblies to resolve and load, the
cache is empty, the connection pool is empty, the JITter has to JIT,
etc. etc. The perf benefits of removing the parse/code-generation are
there, but can be dissapointing for someone who thinks it will be a
huge gain.

[1] http://www.martinfowler.com/articles...tegration.html
--
Scott
http://www.OdeToCode.com/blogs/scott/


--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 27 '06 #11

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

Similar topics

1
2766
by: amit | last post by:
I am trying to compile the sample program genwin.sqc, using nsqlprep which is used to precompile embedded sql in C. I am getting weird errors and that is because windows.h is included in the...
3
14554
by: Darren | last post by:
I just want do some console C++ programs. Do I still need this wield header"stdafx.h"? Thanks
10
1771
by: Roger Withnell | last post by:
I seem to spend far too much of my time struggling with browser inconsistencies concerning Javascript (not to mention CSS). What do you think is the most efficient development regime, including...
1
1687
by: zelzel.zsu | last post by:
What is php's behavior when connect to a db? I've been told that php was once a dominant web programing language. I've read a few chapters of a php book. I was wonder what's php's performance....
1
3521
by: TRI_CODER | last post by:
I am trying to solve the following exception. The exception occurs when my ASP.NET code behind code attemtps to access a remore site using SSL. Please note that all certificates are valid and the...
3
1486
by: archsg | last post by:
Hello, I have an ASP.Net 1.1 application that I need to move to a production server on a customer's network. I do not want the customer to have access to any code. It looks like VS2003 does...
14
3718
by: salad | last post by:
XML seems to be a hot technology buzzword. And it appears XML is supported in A2003. I am wondering if it could be used in the following scenario. I create an order record for the customer. ...
19
2053
by: Viken Karaguesian | last post by:
Hello everyone, Just an observation here: the CSS newsgroup (comp.infosystems.www.authoring.stylesheets) is totally dead. Why?... Anyway here's my discussion point: What is the most versatile...
0
7330
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...
1
6991
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
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
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...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.