Reply to Re: PHP Optimization question

Your name:

Reply:


Posted by C. (http://symcbean.blogspot.com/) on 01/13/08 11:36

On 13 Jan, 08:06, "radmissio...@gmail.com" <radmissio...@gmail.com>
wrote:
> On Jan 12, 10:42 pm, IanRear...@gmail.com wrote:
>
>
>
> > I'm trying to optimize a php project of mine and I'm running into some
> > problems.
>
> > Overall the page takes about .4-.5 seconds to render (just the code,
> > i'm recording the time at start and finish of execution) on a my dual
> > core server with nothing else running (other than httpd and mysqld)
>
> > I've optimized my queries, total mysql query time is about .1 to .12
> > seconds total.
>
> > For some reason the part of my php that takes the longest to execute
> > is a rather large section of html code with some <? echo $someVar; ?>
> > sprinkled in. There is no logic or functional calls, yet this block
> > of code (maybe 50 lines of HTML, takes around .3 seconds to execute.
>
> > Can anyone recomend ways to find out where my php code is executing
> > slow?
>
> > Thank you
>
> is it your local machine? or hosting..its maybe the bandwidth, or
> maybe you have internet protection. that scan the internet content
> before it render the code.

Unlikely to be a bandwidth problem unless the geenrated page is very
large and being flushed intermittently to the browser.

Sounds like a job for XDebug + Kcachegrind

C.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация