473,382 Members | 1,665 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,382 software developers and data experts.

performance issues sorrounding the use of multiple includes

hi all

can anyone tell me what the performance implications are of using
multiple includes on a page. do includes increase performance in
anyway? do they make a signifcantly negative impact? or is it negligible

Sep 8 '06 #1
4 1196
monomaniac21 wrote:
hi all

can anyone tell me what the performance implications are of using
multiple includes on a page. do includes increase performance in
anyway? do they make a signifcantly negative impact? or is it negligible
Well, obviously there is some impact - PHP has to call the OS to load a
new file, after all. But the overhead for parsing the file will be the
same once it's loaded.

If you're running that close to the limit that a few includes worry you,
you need a faster server (or multiple servers).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 9 '06 #2
If you're running that close to the limit that a few includes worry you,
you need a faster server (or multiple servers).
sorry i didnt make myself clear. say for example you have 30 incudes
occuring in while loops pulling only a few scripts. is this going to be
much slower than having the code (which isnt that big) in there instead?

Sep 9 '06 #3

monomaniac21 wrote:
If you're running that close to the limit that a few includes worry you,
you need a faster server (or multiple servers).

sorry i didnt make myself clear. say for example you have 30 incudes
occuring in while loops pulling only a few scripts. is this going to be
much slower than having the code (which isnt that big) in there instead?
Sounds like you need to make the 'included' script into a function and
then use an include once at the beginning and call the function when
needed, doing it the other way will definately be slower as you repeat
all that code in your script 30 times as well as fetch it 30 times.

Larry

Sep 9 '06 #4
monomaniac21 wrote:
>>If you're running that close to the limit that a few includes worry you,
you need a faster server (or multiple servers).


sorry i didnt make myself clear. say for example you have 30 incudes
occuring in while loops pulling only a few scripts. is this going to be
much slower than having the code (which isnt that big) in there instead?
You should never need to include the same file more than once in another
file. If you do you should rethink your logic.

Larry's right - put the code in a function, include it once and call the
function multiple times if necessary.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 9 '06 #5

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

Similar topics

25
by: Brian Patterson | last post by:
I have noticed in the book of words that hasattr works by calling getattr and raising an exception if no such attribute exists. If I need the value in any case, am I better off using getattr...
1
by: Bob | last post by:
Are there any known applications out there used to test the performance of the .NET garbage collector over a long period of time? Basically I need an application that creates objects, uses them, and...
9
by: Java script Dude | last post by:
In many languages, it is necessary to string together multiple strings into one string for use over multiple lines of code. Which one is the most efficient from the interpreters perspective: ...
9
by: bluedolphin | last post by:
Hello All: I have been brought onboard to help on a project that had some performance problems last year. I have taken some steps to address the issues in question, but a huge question mark...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
4
by: smoody | last post by:
I have an ASP.NET application which uses a .NET Web Service as a wrapper to a COM+ DLL. Performance for a single user is very good. However, I have noticed that when multiple requests are made...
19
by: Tom Jastrzebski | last post by:
Hello, I was just testing VB.Net on Framework.Net 2.0 performance when I run into the this problem. This trivial code attached below executed hundreds, if not thousand times faster in VB 6.0...
8
by: Dmitry Akselrod | last post by:
Hi, I have a recursive application that walks through a directory structure on a Hard Drive and writes various file information to a single table in an Access 2003 database. I am opening a...
4
by: skotapal | last post by:
Hello I manage a web based VB .net application. This application has 3 components: 1. Webapp (this calls the executibles) 2. database 3. business logic is contained in individual exe...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.