/    Sign up×
Community /Pin to ProfileBookmark

Need help speeding my site up

Hi,

On my site I use a config file thats included at the top of every page.

The include file has paths for links, images, etc…

Everywhere there is a image I do this <?php echo $ImageURL; ?>

I think its slowing down my site. Does anyone have any ideas?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 02.2009 — Simply echoing a variable takes very little time at all -- we're probably talking something you would measure in microseconds.

To find out where your delays are would require a much more comprehensive code review and perhaps some metering and other performance testing to isolate the actual bottlenecks. Some of the common performance issues are inefficient database usage (poor data design and inefficient queries), accessing external data via HTTP requests, loops that spawn new processes of some sort on each iteration, reading large files and manipulating their data, etc.

Simply including one include file and doing some echoes should not be an issue (unless there is something "ugly" going on in that include file).
Copy linkTweet thisAlerts:
@MindzaiNov 02.2009 — If your site is slow, almost certainly by the far the biggest bottleneck will be HTTP requests, not PHP code. Make sure you have proper expires headers set on your static content.
×

Success!

Help @comptech520 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...