One tool.

Xdebug

Install it as an extension, get a cachegrind viewer, and picks whichever bad 
piece of code is the slowest. This way you are optimising what really is slow, 
not everything else that you think might be slow.
 
Pádraic Brady

http://blog.astrumfutura.com
http://www.patternsforphp.com
OpenID Europe Foundation Member-Subscriber


----- Original Message ----
From: ashish.sharma <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, October 3, 2007 6:19:18 AM
Subject: [fw-general] Optimized PHP


Hello All,

I am working on PHP from quite some time. I am pretty much comfortable in 
writing PHP code but I always want that I should write good, quality code. For 
this I always look for the best practices which other developers uses and 
implement and I am writing this for the same reason as I would like to know how 
can i code a good, optimized PHP code. What are the areas where I can optimize 
my code more to avoid extra consumption of resources h/w or s/w. What are the 
best practices I can follow to optimize my code to increase the speed and 
performance of my application and to reduce down the memory consumption. For 
example ..

In an application where I am having some different settings for each of the 
user/visitor, then what will be the best approach of doing this? Should I keep 
all the settings in sessions or should i create an xml/ini file for each user 
and call that in the bootstrap file (at runtime, on the basis of the the User) 
to pick the settings of that user.

These are the kind of questions for which I always have to think. So, can 
anyone suggest me some source / article / reference from where I can find the 
solutions of such of my problems.

Looking forward for your suggestions ..

Thx to all ..

Ashish


View this message in context: Optimized PHP

Sent from the Zend Framework mailing list archive at Nabble.com.







       
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

Reply via email to