473,547 Members | 2,653 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

General performance question

Hello,

I have a page containing 7 iframes. Each document is created through
PHP, 8 in total. I had performance issues which I could solve through
Wincachegrind - now according to it, each of the 8 takes only about
20ms, i.e. the whole page should be loaded in less 0.1 seconds. In
fact, it takes more than 5 seconds to load. The HTML is pretty simple.
I wonder how I can detect the bottleneck reason? Any hints? Is there
any general communication settings, in php.ini or I don't know, e.g.
about parallel connections or so, or things to take into account to
load an iframed page more quickly?

Thanx in advance!
Daniel

*************

Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]

If you wish to email me, please use newsreply at wuwei minus webservices dot de
Jun 2 '08 #1
4 1212
On Apr 17, 12:15 pm, Daniel Loose <gruenwiesl...@ web.dewrote:
Hello,

I have a page containing 7 iframes. Each document is created through
PHP, 8 in total. I had performance issues which I could solve through
Wincachegrind - now according to it, each of the 8 takes only about
20ms, i.e. the whole page should be loaded in less 0.1 seconds. In
fact, it takes more than 5 seconds to load. The HTML is pretty simple.
I wonder how I can detect the bottleneck reason? Any hints? Is there
any general communication settings, in php.ini or I don't know, e.g.
about parallel connections or so, or things to take into account to
load an iframed page more quickly?

Thanx in advance!
Daniel

*************

Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]

If you wish to email me, please use newsreply at wuwei minus webservices dot de
Are you using PHP sessions? If so, each page (or iframe) requested
will open the session, lock it, execute, write the session back, then
release the lock. While that data is locked the other pages (iframes)
will wait -- which may be what you're experiencing.
Jun 2 '08 #2

|Are you using PHP sessions? If so, each page (or iframe) requested
|will open the session, lock it, execute, write the session back, then
|release the lock. While that data is locked the other pages (iframes)
|will wait -- which may be what you're experiencing.

oh! yes I do. -- what can I do?? =)

*************

Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]

If you wish to email me, please use newsreply at wuwei minus webservices dot de
Jun 2 '08 #3
*** Daniel Loose escribió/wrote (Thu, 17 Apr 2008 19:27:01 +0200):
oh! yes I do. -- what can I do?? =)
Do those 7 iframes do something that can't be accomplished in the main
page? Do you need session data in all of them?

--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com
--
Jun 2 '08 #4
NC
On Apr 17, 9:15 am, Daniel Loose <gruenwiesl...@ web.dewrote:
>
I have a page containing 7 iframes. Each document is created through
PHP, 8 in total. I had performance issues which I could solve through
Wincachegrind - now according to it, each of the 8 takes only about
20ms, i.e. the whole page should be loaded in less 0.1 seconds. In
fact, it takes more than 5 seconds to load. The HTML is pretty simple.
I wonder how I can detect the bottleneck reason? Any hints? Is there
any general communication settings, in php.ini or I don't know, e.g.
about parallel connections or so, or things to take into account to
load an iframed page more quickly?
Not really... The best way to deal with this problem is to get rid of
iframes altogether. When the main page loads, it triggers the loading
of 7 iframes, each of which is a page in its own right. So every time
the main page loads, the server has to process eight HTTP requests.
If each of this pages is database-driven, you also end up with eight
database connections.

Alternatively, if some or all of the iframes are static or not
frequently updated, you could cache them...

Cheers,
NC
Jun 2 '08 #5

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

Similar topics

0
1134
by: jimjim | last post by:
Hello, I ve got the following question from a past exam paper: "Explain the consequences of Java's approach to deleting remote objects on the general performance of both local and remote Java method invocations." Does this refer to the latency imposed by object activation?I cant really understand the question!
14
2634
by: 2mc | last post by:
Generally speaking, if one had a list (from regular Python) and an array (from Numerical Python) that contained the same number of elements, would a While loop or a For loop process them at the same speed? Or, would the array process faster? I'm new to Python, so my question may expose my ignorance. I appreciate anyone's effort to help me...
37
2836
by: middletree | last post by:
Yesterday, I posted a problem which, by the way, I haven't been able to solve yet. But in Aaron's reply, he questioned why I did several things the way I did. My short answer is that I have a lot to learn, but now I'd like to ask anyone who reads this, including Aaron, for some clarification. I imagine others might benefit, too. "Aaron...
2
1789
by: mghale | last post by:
Greetings, I have a client who is using two BLOB columns in two of their tables for a new database application. I have not had much experience working with LOB data and wanted to 'pick your brains' as to any general advise you can give to imporove the performance of these two columns. Max size is 10 MB. There is only one BLOB in each...
3
2045
by: Lauren Quantrell | last post by:
A general design question: Assuming I can figure out a way to link some local tables in an .MDB file to my Access2000 .ADP database (any help on this is appreciated as well), I'm wondering which of the following methods will yield faster performance over a slow WAN network: Method A: Creating tables on my SQL Server to store temporary...
9
2351
by: Michael | last post by:
Hi all, I would like to get people's opinion about executing SQL statements in C# (or any other .NET language really). I used to create my SQL statement by building a string and replacing single quote with two single quotes. Sometimes, I used SqlParameter. Maybe, I'm a bit lazy when I build the SQL string. Should I always use SqlParameters?...
13
2291
by: gmccallum | last post by:
General Info: A struct is stored on the stack and a class on the heap. A struct is a value type while a class is a reference type. Question: What if a struct contains a string property(variable). The string would be a reference type being contained in a value type. Would this filter up and cause the stack to now be a reference type...
6
1560
by: Alex | last post by:
Hello I am intersting in developing and my background is VBA used in Excel and a brief intro to Java. I am interested in learning beyond VB and feel that C++ would be a very good language to get to know and give a lot of flexibility (if not tough to learn). I would like some advice on the merits of learning C++ versus C# or Visual...
7
2017
by: Joe Ross | last post by:
I've been working with Microsoft support for over 3 weeks now on an intermittent General Network Error we're seeing in our production environment between our ASP.NET application and SQL Server 2000. They are continuing to work on the issue, but it seems as if our progress is grinding to a halt. I asked this question on the newsgroups before...
0
7510
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...
0
7437
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...
0
7703
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
7947
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
5362
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
5081
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3473
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1923
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 we have to send another system
1
1050
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.