473,587 Members | 2,492 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 1207
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
1347
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
3735
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 did a preload script. But then the user has to sit for 5 minutes waiting for 63 images to download! My images are about 640x480 and average 100kb. Is...
2
2493
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 of .JPGs and a folder of .BMPs each with the same images (stored in the two different formats) will the Image Control load faster with a JPG or a...
2
3452
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 extreme conditions, it'll have to be queried thousands of times (maybe 20,000 times at most). Small fragments of this file are used to construct another...
5
12225
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. The ID is a member of the keys array. I then create a DataView dv over the table, and sort it by Display and ID column (in case of duplicate...
3
2816
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 there any way I can optimize the speed. Any sample code would be great. Thanks, Reddy
1
1911
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: ************************************** An error occurred while loading the document. Fix the error, and then try loading the document again. The error message follows: You do not...
27
2257
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 continue through the HTML until Image1 has loaded COMPLETELY. When Image1 is done, Image2 BEGINS loading. When Image2 is 100% done, only then does Image...
0
2195
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 incurred a network hit per image file. i wanted to avoid the overhead of a separate network connection for each image file, so i bundled all the...
1
2127
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 layout of the form. It works great, no flicker whatsoever, but even with settings on minimum, it creates some noticable delay between all form loading...
0
8215
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8347
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6626
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3844
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1189
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.