473,385 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1202
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
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...
14
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...
37
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...
2
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...
3
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...
9
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...
13
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...
6
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...
7
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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...

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.