Link Details

Link 102183 thumbnail
User 276670 avatar

By dharmavir
via blogs.digitss.com
Published: Aug 11 2008 / 07:15

This post covers some performance improvement tips by showing merits or demerits of various coding practices in PHP. While developing small websites or projects which are not meant to be maintained for longer period of time it's okey it we don't care about all this performance improvement and so on. But while we are into the development of some product or project which are going to be maintained for longer period of time then it is required that we take care of small things from the beginning. Initially we may feel that benefits are not drastic but when we have large amount of user base then all small and minor things matters. In PHP we have always so many ways to do things. During development of php as a language, developer community/team added up many functions and features (due to requests..!) in the language and some of them might be redundant, so we have sometimes many ways to solve one problem. Here sometimes due to not knowing what is the best way to solve the problem, we use the solution which we already know or we are more familiar with. Sometimes as a developer we create habit of doing something in particular way for always. Please read on to know whether you are already aware of this tips, which could improve performance of your php application. (Even if it is micro improvement it matters..!)
  • 7
  • 7
  • 1728
  • 520

Comments

Add your comment
User 279767 avatar

topbit replied ago:

4 votes Vote down Vote up Reply

Why do people keep posting these simplistic lists?
* Cache your compiled PHP bytecodes with APC
* Use Xdebug to find out where it's actually slow, then work on that part first.
* Your database access will run 10-10,000 times slower than your PHP code does, improve the SQL layer with indexes, caches and optimise the database server

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (7)