Monday, December 18, 2006

 
Ways to make your PHP Perform better:

1. Make sure that you do not include too many files.
2. Do use optimised queries and follow better RDBMS practices.
3. Do not use unneccessary variables.
4. Avoid code repetition.
5. Use REgEx only when required and not for every string operations.
6. Use some compression techniques when required to transport too many data, particularly through socket.
7. Profile your codes regularly.
8. Use benchmarking to find the problem areas before release.
9. Use caching techniques like APC etc.
10.Avoid using recursion, below 5th level.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?