473,511 Members | 17,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Loading speed

I am building ASP.NET pages and find that it takes about 15-20 seconds to
render the first time it is accessed (this seems to be the case for a page
that really does nothing). I was told that even if I compile the Codebehind
pages first, it won't really help much.

Is there a way to tell the system to go compile all the pages when the
system starts up? The problem is that if it takes that long for each page,
it could look bad for the site when a user hits a page that hasn't been
opened yet and it waits for an inordinately long time.

I was also told that Java doesn't have this problem. I was told that Java
(not sure what their .net equivalent is), renders much faster. Is this the
case? If so, why is that?

Thanks,

Tom.
Nov 18 '05 #1
2 1202
Thomas Scheiderich wrote:
I am building ASP.NET pages and find that it takes about 15-20
seconds to render the first time it is accessed (this seems to be the
case for a page that really does nothing). I was told that even if I
compile the Codebehind pages first, it won't really help much.
15-20 seconds seems way too much. Checking... two seconds for a simple ASPX
page with mostyl HTML and a HyperLink control using code-behind.
Is there a way to tell the system to go compile all the pages when the
system starts up?
AFAIK, this will be an ASP.NET 2.0 feature.
The problem is that if it takes that long for each
page, it could look bad for the site when a user hits a page that
hasn't been opened yet and it waits for an inordinately long time.
Quite honestly: In production, this is negligible assuming you're dealing
with hundreds or thousands of users and your application isn't a moving
target. Also, it is a good practice to have a last look at your application
after installing it in production and before releasing it to the public, so
it should be you who sees the delay ;-)

It's much worse for development if you're stuck with a 15 second delay.
I was also told that Java doesn't have this problem. I was told that
Java (not sure what their .net equivalent is), renders much faster.
This is not a question of rendering -- it is code generation. Rendering
takes places once the code generator has produced the page's code.
Is this the case? If so, why is that?


The equivalent J2EE technology is Java Server Pages (JSP). Modern
Servlet/JSP containers offer precompilation.

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 18 '05 #2
Thomas Scheiderich wrote:
I am building ASP.NET pages and find that it takes about 15-20
seconds to render the first time it is accessed (this seems to be the
case for a page that really does nothing). I was told that even if I
compile the Codebehind pages first, it won't really help much.
15-20 seconds seems way too much. Checking... two seconds for a simple ASPX
page with mostyl HTML and a HyperLink control using code-behind.
Is there a way to tell the system to go compile all the pages when the
system starts up?
AFAIK, this will be an ASP.NET 2.0 feature.
The problem is that if it takes that long for each
page, it could look bad for the site when a user hits a page that
hasn't been opened yet and it waits for an inordinately long time.
Quite honestly: In production, this is negligible assuming you're dealing
with hundreds or thousands of users and your application isn't a moving
target. Also, it is a good practice to have a last look at your application
after installing it in production and before releasing it to the public, so
it should be you who sees the delay ;-)

It's much worse for development if you're stuck with a 15 second delay.
I was also told that Java doesn't have this problem. I was told that
Java (not sure what their .net equivalent is), renders much faster.
This is not a question of rendering -- it is code generation. Rendering
takes places once the code generator has produced the page's code.
Is this the case? If so, why is that?


The equivalent J2EE technology is Java Server Pages (JSP). Modern
Servlet/JSP containers offer precompilation.

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 18 '05 #3

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

Similar topics

1
1345
by: Vitamin | last post by:
if a page always have some picture that totally have near 250k does this a main point of affect the loading speed?
4
3727
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just...
2
2483
by: Lauren Quantrell | last post by:
Is there any speed difference or advantage to loading different types of images from a folder residing on a client machine into an Access Image Control on a form? For example, if I have a folder...
2
3447
by: Gustaf Liljegren | last post by:
I'm writing a program that will query an XML file with the XmlTextReader class (the question is not specifically about XML, however). This file is very large (maybe 20 MB at most), and during...
5
12209
by: John Richardson | last post by:
I've been bothered for some time about my DataGrid not populating my rows very quickly. I have about 10K rows loading into the grid. I create a datatable dt with 2 columns, an ID and a display. ...
3
2811
by: Reddy | last post by:
The sql query for my datagrid returns 100, 000 records. But the datagrid should display 20 records per page. I am using datagrid paging, but it is taking too much time for the page to load. Is...
1
1908
by: RAJ | last post by:
Hi, I am working on a source code written earlier in VB.net.While loading some forms(already created with some controls on it), I am getting the following error:...
27
2226
by: Chris Tomlinson | last post by:
Hi, is there any way to specify the sequence in which images load on a web page? More specifically, here is what we need to achieve: Image1 starts loading first and the browser does not...
0
2189
by: speedcoder | last post by:
hi all, i'm stumped. my applet used to load images over the network. (it was actually designed by someone else.) yes, the applet used to load each image file independently over the network and...
1
2112
by: Mecena | last post by:
Hi all! I have a problem regarding form loading speed. I have forms with many controls and some time ago I've implemented a fader that uses a symbollic millisecond of fade time to buffer the...
0
7245
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7427
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
7085
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
7512
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...
1
5069
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
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.