Home arrow PHP arrow Page 5 - A Few Tips for Speeding Up PHP Code

A Few Tips for Speeding Up PHP Code

Ever wondered how to improve your code's execution time? Daryl reveals some of his secrets and shows us how to do just that.

Author Info:
By: Daryl Houston
Rating: 3 stars3 stars3 stars3 stars3 stars / 52
October 02, 2003
  1. · A Few Tips for Speeding Up PHP Code
  2. · Filter Database Results
  3. · Consolidate Queries
  4. · Pattern Matching Metrics
  5. · Conclusion

print this article

A Few Tips for Speeding Up PHP Code - Conclusion
(Page 5 of 5 )

I manipulate information pulled from a database on a daily basis, pushing rows around and testing for various conditions that will determine what I'm to do to my data next. Among my most commonly-used functions are those that allow me to interact with the database and those that I use to test for and modify patterns within strings. Knowing that my applications will function better on the whole if I fine-tune these frequent operations, I sought to measure their performance so that I could strive at all times to use the most efficient code. Findings in this batch of experimentation were that trimming database results prior to actually manipulating the data makes a significant difference; that batching INSERT, UPDATE, and DELETE queries rather than performing them one at a time can more than double the speed with which these queries are executed; and that the preg functions seem to be faster and more versatile for text manipulation.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- Making Usage Statistics in PHP
- Installing PHP under Windows: Further Config...
- File Version Management in PHP
- Statistical View of Data in a Clustered Bar ...
- Creating a Multi-File Upload Script in PHP
- Executing Microsoft SQL Server Stored Proced...
- Code 10x More Efficiently Using Data Access ...
- A Few Tips for Speeding Up PHP Code
- The Modular Web Page
- Quick E-Commerce with PHP and PayPal
- Regression Testing With JMeter
- Building an Iterator with PHP

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials