473,659 Members | 2,722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Huge HTML output perfomance

Hi,
I have a report which shows all records from database into the browser.
The final HTML comes out about 5 Meg.

It takes 1 minute 5 seconds for transfer to show up when i hit the page with IE

The trace info shows that output was done within 1 second and then i guess it took so much time (> 1 minute) for it to actually be transferred to IE. I am doing test on the same machine. IIS and IE are on the same machine and I believe the actual transfer of 5 Meg data is much faster.

So i suspect that all that time was spent on actually transferring data between ASP.NET engine and IIS IO threads.
Is there a way to speed up that?

Bellow is info from trace that shows the rendering took less than a second.
Trace info Message From First From Last
aspx.page End Render 0.802165 0.671952

Thanks
George.

Nov 19 '05 #1
10 1529
Regardless of whether the web server is on the same machine as the browser,
HTTP is transported over a TCP connection. The time spent was the time it
took to send 5 megs of data over a TCP connection as an HTTP response.

Basically, the problem is, your web page is too big.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"George" <no****@hotmail .com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi,
I have a report which shows all records from database into the browser.
The final HTML comes out about 5 Meg.

It takes 1 minute 5 seconds for transfer to show up when i hit the page with
IE

The trace info shows that output was done within 1 second and then i guess
it took so much time (> 1 minute) for it to actually be transferred to IE. I
am doing test on the same machine. IIS and IE are on the same machine and I
believe the actual transfer of 5 Meg data is much faster.

So i suspect that all that time was spent on actually transferring data
between ASP.NET engine and IIS IO threads.
Is there a way to speed up that?

Bellow is info from trace that shows the rendering took less than a second.
Trace info Message From First From Last
aspx.page End Render 0.802165 0.671952

Thanks
George.


Nov 19 '05 #2
Not to mention that transferring the data takes quite a while, the browser also has to parse and process 5 megs worth of HTML and render it properly. That is not the same thing as the .aspx server side code rendering - that just creates the resulting HTML.

Given that, you should be very happy that it is taking only a minute for all this happen. I hope your clients all have very fast machines with excellent internet connections.
"George" <no****@hotmail .com> wrote in message news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi,
I have a report which shows all records from database into the browser.
The final HTML comes out about 5 Meg.

It takes 1 minute 5 seconds for transfer to show up when i hit the page with IE

The trace info shows that output was done within 1 second and then i guess it took so much time (> 1 minute) for it to actually be transferred to IE. I am doing test on the same machine. IIS and IE are on the same machine and I believe the actual transfer of 5 Meg data is much faster.

So i suspect that all that time was spent on actually transferring data between ASP.NET engine and IIS IO threads.
Is there a way to speed up that?

Bellow is info from trace that shows the rendering took less than a second.
Trace info Message From First From Last
aspx.page End Render 0.802165 0.671952

Thanks
George.

Nov 19 '05 #3
Allow me to disagree.
I can copy that file (generated HTML) over our corporate network to a file server within 1-2 seconds. And it really does travels across the LAN (100 Mbs per sec).

When IIS server on the same machine as IE the data transfers over TCP connection but i can assure you that actual speed is much faster than 100 Mb per sec.

So my point is that there is no way that transfer of 5Meg took more than a second over a local TCP connection.

George.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message news:ui******** ******@TK2MSFTN GP15.phx.gbl...
Regardless of whether the web server is on the same machine as the browser,
HTTP is transported over a TCP connection. The time spent was the time it
took to send 5 megs of data over a TCP connection as an HTTP response.

Basically, the problem is, your web page is too big.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"George" <no****@hotmail .com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi,
I have a report which shows all records from database into the browser.
The final HTML comes out about 5 Meg.

It takes 1 minute 5 seconds for transfer to show up when i hit the page with
IE

The trace info shows that output was done within 1 second and then i guess
it took so much time (> 1 minute) for it to actually be transferred to IE. I
am doing test on the same machine. IIS and IE are on the same machine and I
believe the actual transfer of 5 Meg data is much faster.

So i suspect that all that time was spent on actually transferring data
between ASP.NET engine and IIS IO threads.
Is there a way to speed up that?

Bellow is info from trace that shows the rendering took less than a second.
Trace info Message From First From Last
aspx.page End Render 0.802165 0.671952

Thanks
George.


Nov 19 '05 #4
What you are seeing is that it takes a long time to transfer 5MB over a network connection.
It takes almost no time when everything is on the local machine, because no network cables are involved.
As soon as you try and cram all that data through a little cable, things hit a bottleneck.
Transferring over the Internet (versus a local LAN) will slow things down even more.
It's a fact of life, and there's not much you can do about it.
There are workarounds though, such as using paging. If you only display one page of the report at a time then you don't need to transfer nearly as much for each page request.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"George" <no****@hotmail .com> wrote in message news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi,
I have a report which shows all records from database into the browser.
The final HTML comes out about 5 Meg.

It takes 1 minute 5 seconds for transfer to show up when i hit the page with IE

The trace info shows that output was done within 1 second and then i guess it took so much time (> 1 minute) for it to actually be transferred to IE. I am doing test on the same machine. IIS and IE are on the same machine and I believe the actual transfer of 5 Meg data is much faster.

So i suspect that all that time was spent on actually transferring data between ASP.NET engine and IIS IO threads.
Is there a way to speed up that?

Bellow is info from trace that shows the rendering took less than a second.
Trace info Message From First From Last
aspx.page End Render 0.802165 0.671952

Thanks
George.

Nov 19 '05 #5

So my point is that there is no way that transfer of 5Meg took more than a
second over a local TCP connection.

a 5mb file is a GIGANTIC (I mean mega-super-hyper-gigantic!) file for most
any web browser to render quickly. It's not the transfer time that's the
hold-up...it's likely the browser render time.

even 1mb files are pushing it.

Is this data in a table? One option it so break out the data into multiple
tables, so once one table is downloaded, the browser can start rendering
that while it goes onto the next...so it at least as the impression of
rendering faster.

-Darrel
Nov 19 '05 #6
Thanks
You are right. I actually save file on disk and tried to open it with IE form local disk. It took almost 40 seconds to render it.

George.

"Marina" <so*****@nospam .com> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Not to mention that transferring the data takes quite a while, the browser also has to parse and process 5 megs worth of HTML and render it properly. That is not the same thing as the .aspx server side code rendering - that just creates the resulting HTML.

Given that, you should be very happy that it is taking only a minute for all this happen. I hope your clients all have very fast machines with excellent internet connections.

Nov 19 '05 #7
Thanks
You are correct. I save HTML file on a disk and opened with IE. It took almost 40 seconds to do it.

Thanks
George.

"darrel" <no*****@hotmai l.com> wrote in message news:OI******** ******@TK2MSFTN GP14.phx.gbl...

So my point is that there is no way that transfer of 5Meg took more than a
second over a local TCP connection.

a 5mb file is a GIGANTIC (I mean mega-super-hyper-gigantic!) file for most
any web browser to render quickly. It's not the transfer time that's the
hold-up...it's likely the browser render time.

even 1mb files are pushing it.

Is this data in a table? One option it so break out the data into multiple
tables, so once one table is downloaded, the browser can start rendering
that while it goes onto the next...so it at least as the impression of
rendering faster.

-Darrel
Nov 19 '05 #8
You're certainly allowed to disagree. However, let me remind you that you're
comparing apples to oranges. Note the mention of the HTTP protocol in my
response. You are also not accounting for the web server layer.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"George" <no****@hotmail .com> wrote in message
news:OU******** *****@TK2MSFTNG P15.phx.gbl...
Allow me to disagree.
I can copy that file (generated HTML) over our corporate network to a file
server within 1-2 seconds. And it really does travels across the LAN (100
Mbs per sec).

When IIS server on the same machine as IE the data transfers over TCP
connection but i can assure you that actual speed is much faster than 100 Mb
per sec.

So my point is that there is no way that transfer of 5Meg took more than a
second over a local TCP connection.

George.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:ui******** ******@TK2MSFTN GP15.phx.gbl...
Regardless of whether the web server is on the same machine as the
browser,
HTTP is transported over a TCP connection. The time spent was the time it
took to send 5 megs of data over a TCP connection as an HTTP response.

Basically, the problem is, your web page is too big.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"George" <no****@hotmail .com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi,
I have a report which shows all records from database into the browser.
The final HTML comes out about 5 Meg.

It takes 1 minute 5 seconds for transfer to show up when i hit the page
with
IE

The trace info shows that output was done within 1 second and then i guess
it took so much time (> 1 minute) for it to actually be transferred to IE.
I
am doing test on the same machine. IIS and IE are on the same machine and
I
believe the actual transfer of 5 Meg data is much faster.

So i suspect that all that time was spent on actually transferring data
between ASP.NET engine and IIS IO threads.
Is there a way to speed up that?

Bellow is info from trace that shows the rendering took less than a
second.
Trace info Message From First From Last
aspx.page End Render 0.802165 0.671952

Thanks
George.

Nov 19 '05 #9
> You are right. I actually save file on disk and tried to open it with IE
form local disk. It took almost 40 seconds to render it.

Also, make sure whatever control is being used to 'hold' the markup for the
data that you don't have that set to preserve it's view state...if you do,
that can easily double the size of the page's source code.

-Darrel
Nov 19 '05 #10

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

Similar topics

5
3121
by: Sandman | last post by:
Hi there! I am making a web page, and I want the user to be able to decide which part of the webpage ends up where, left or right side. So we have what I call "content" and "sidebar". As in a text, you see the content to the left and the sidebar to the right. This is done with something like this: <table> <tr> <td>
2
5093
by: news.onet.pl | last post by:
I've launched some perfomance test for some program measuring number of operations, net messages processed per second, etc. Why is my point, is the question how Java initial and maximal heap is connected with the swap space of Operating System. Those Java utilize both memory and swap space for purpose of its heap? TIA,
2
1053
by: James T. | last post by:
Hello! Let's say I have 2 functions, both return data from the database. Now I would like to compare perfomance of these two functions. I would like to know how long it takes to execute these functions. How can I do that? Thank you! James
2
2229
by: borisov.gleb | last post by:
wp.prototype.loadHtmlToCtrl = function (ctrl, html) { alert(1); ctrl.innerHTML = html; alert(2); } 5-10 seconds between two alerts depends on string length. It's only IE bug. FF and Safari3 works fine. Maybe anyone knows how I can insert huge HTML data faster? (100-400Kb
8
4274
by: blaine | last post by:
Hey guys, For my Network Security class we are designing a project that will, among other things, implement a Diffie Hellman secret key exchange. The rest of the class is doing Java, while myself and a classmate are using Python (as proof of concept). I am having problems though with crunching huge numbers required for calculations. As an alternative I can use Java - but I'd rather have a pure python implementation. The problem is that...
4
1548
by: =?Utf-8?B?VmVlcmFiaGFkcmFpYWggTCBN?= | last post by:
Hi, I have two databases D1 with 6 million records and D2 with 95 thousand records. I need to check Common records from these two databases based on UserID and need to insert into other database D3 and also need to create XML files. For this i followed below approach. I have used two threads. -->one thread to Pick the users from D1, filter out against D2 and will be inserting into D3.
3
3249
by: damodharan | last post by:
Hello and thanks in advance. I have two table in DB2 (ver 8). table details are table one(Cust_det) has two fields (Cust_cin and cust_name). table two(cust_add_det) has cust_cin and cust_address fields. To join above two table which sql is better on perfomance point of view? and how conditional where clause works?
16
2035
by: pereges | last post by:
ok so i have written a program in C where I am dealing with huge data(millions and lots of iterations involved) and for some reason the screen tends to freeze and I get no output every time I execute it. However, I have tried to reduce the amount of data and the program runs fine. What could possibly be done to resolve this ?
0
1189
by: ferozanna | last post by:
I am using Asp.net 1.3 with C# My application used by call center people My applicaton is a three tier arch I have create data layer as class ibrary which goint to talke Ssqlserver 205 db At time 2000 to 3000 user are using How can i improve my application perfomance, Give me tips
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8332
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8746
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4175
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.