<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 10:23:23 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Practical Code Refactoring, Part 4 - Efficiency]]></title>
      <guid>http://www.phpdeveloper.org/news/18684</guid>
      <link>http://www.phpdeveloper.org/news/18684</link>
      <description><![CDATA[<p>
PHPMaster.com has posted the latest in their "Practical Code Refactoring" series , this time with a <a href="http://phpmaster.com/practical-code-refactoring-4/">focus on efficiency</a> and how you can refactor your code to help it perform better both in processing power and in resource use.
</p>
<blockquote>
In <a href="http://phpmaster.com/practical-code-refactoring-3/">part three</a> of this series we dealt with refactoring code for extensibility and discussed logical extensibility, modular design, decoupling, and encapsulation. In this final part of the series, we discuss what the main concerns of efficiency are for your web application and how to refactor for better efficiency.
</blockquote>
<p>
They talk about some of the things you can do about network bandwidth usage, memory inefficiencies and processing issues (over you doing more work than you need to?). These aren't code examples - every application is different when it comes to this stuff, but it gives you some good questions to ask to fill in the blanks.
</p>]]></description>
      <pubDate>Thu, 01 Nov 2012 11:37:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brandon Savage's Blog: Stop Sacrificing Readability For Efficiency!]]></title>
      <guid>http://www.phpdeveloper.org/news/12226</guid>
      <link>http://www.phpdeveloper.org/news/12226</link>
      <description><![CDATA[<p>
<i>Brandon Savage</i> <a href="http://www.brandonsavage.net/stop-sacrificing-readability-for-efficiency/">has a recommendation</a> fro developers out there - sometimes readability is more important than any micro-efficiency you might gain in your scripts.
</p>
<blockquote>
Much was made last week over the topic of <a href="http://www.alexatnet.com/node/196">micro optimization</a> in PHP. Most of these argued that micro optimization was a bad idea. [...] There's another reason that micro optimization can be a bad choice: it makes code absolutely impossible to read!
</blockquote>
<p>
He points out one example for validating the length of a string in two ways - one using isset to tell which characters in a string are set and the other using the tride and true call to <a href="http://php.net/strlen">strlen</a>. The first, while benchmarked to give you a (very tiny) improvements, is harder to read at first glance than the check to the string length.
</p>]]></description>
      <pubDate>Fri, 27 Mar 2009 12:58:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brandon Savage's Blog: Hitting the Database Less: Quick and Dirty Strategies for Database Efficiency]]></title>
      <guid>http://www.phpdeveloper.org/news/11416</guid>
      <link>http://www.phpdeveloper.org/news/11416</link>
      <description><![CDATA[<p>
In <a href="http://www.brandonsavage.net/entry/hitting-the-database-less-quick-and-dirty-strategies-for-database-efficiency.html">this new post</a> to his blog, <i>Brandon Savage</i> looks at a few methods you can use to help reduce the overhead connecting to the database can cause.
</p>
<blockquote>
Below are a list of my top five quick-and-dirty strategies for improving database performance in web applications. These suggestions are culled from recent experience and mixed with some ideas that I've implemented in my own code. They're not high level, but they are something we need consistent reminders about.
</blockquote>
<p>Here's the short version of the list:</p>
<ul>
<li>Try caching
<li>Reduce the number of queries that run
<li>Use indexes
<li>Optimize data usage
<li>Avoid functions in WHERE statements
</ul>
<p>
You'll have to check out <a href="http://www.brandonsavage.net/entry/hitting-the-database-less-quick-and-dirty-strategies-for-database-efficiency.html">his post</a> for the full versions, though.
</p>]]></description>
      <pubDate>Mon, 17 Nov 2008 11:04:24 -0600</pubDate>
    </item>
  </channel>
</rss>
