<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Performance Best Practices</title>
	<atom:link href="http://atomized.org/2005/04/php-performance-best-practices/feed/" rel="self" type="application/rss+xml" />
	<link>http://atomized.org/2005/04/php-performance-best-practices/</link>
	<description>Fragmenting reality.</description>
	<lastBuildDate>Fri, 12 Mar 2010 20:46:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Donovan Walker</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-143072</link>
		<dc:creator>Donovan Walker</dc:creator>
		<pubDate>Wed, 11 Nov 2009 22:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-143072</guid>
		<description>Give the guy a break. He wrote it in 2005. Back then I don&#039;t think Copy-on-Write was implemented. Glad you included the link.</description>
		<content:encoded><![CDATA[<p>Give the guy a break. He wrote it in 2005. Back then I don&#8217;t think Copy-on-Write was implemented. Glad you included the link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Rav</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-141648</link>
		<dc:creator>Mathias Rav</dc:creator>
		<pubDate>Mon, 05 Oct 2009 18:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-141648</guid>
		<description>&quot;In PHP, $foo = $bar makes a copy of $bar, and stores it in $foo.&quot;
As henrietta stated, you lie. http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html</description>
		<content:encoded><![CDATA[<p>&#8220;In PHP, $foo = $bar makes a copy of $bar, and stores it in $foo.&#8221;<br />
As henrietta stated, you lie. <a href="http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html" rel="nofollow">http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: henrietta</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-117739</link>
		<dc:creator>henrietta</dc:creator>
		<pubDate>Thu, 19 Feb 2009 12:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-117739</guid>
		<description>&quot;&quot;In PHP, $foo = $bar makes a copy of $bar, and stores it in $foo.&quot;&quot;

Yeah, but Zend Engine implements Copy-On-Write logic. As stated in a PHP documentation comment, in most cases the Zend Engine &gt; you.</description>
		<content:encoded><![CDATA[<p>&#8220;&#8221;In PHP, $foo = $bar makes a copy of $bar, and stores it in $foo.&#8221;"</p>
<p>Yeah, but Zend Engine implements Copy-On-Write logic. As stated in a PHP documentation comment, in most cases the Zend Engine &gt; you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-94064</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Wed, 30 Jul 2008 21:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-94064</guid>
		<description>@James, If you have 30k LOC in one file, your concerns should be about the maintainability of your application, not performance.

Taking a speed hit in exchange for maintainability gains is a good trade-off. CPU cycles are cheap and only getting cheaper. Developer cycles are expensive and getting more so.</description>
		<content:encoded><![CDATA[<p>@James, If you have 30k LOC in one file, your concerns should be about the maintainability of your application, not performance.</p>
<p>Taking a speed hit in exchange for maintainability gains is a good trade-off. CPU cycles are cheap and only getting cheaper. Developer cycles are expensive and getting more so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Rusev Blog about web development and graphic design &#187; Blog Archive &#187; PHP performance tips around the web</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-93940</link>
		<dc:creator>Martin Rusev Blog about web development and graphic design &#187; Blog Archive &#187; PHP performance tips around the web</dc:creator>
		<pubDate>Tue, 29 Jul 2008 08:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-93940</guid>
		<description>[...] http://atomized.org/2005/04/php-performance-best-practices/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://atomized.org/2005/04/php-performance-best-practices/" rel="nofollow">http://atomized.org/2005/04/php-performance-best-practices/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-93893</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 28 Jul 2008 19:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-93893</guid>
		<description>been looking around the web for a good article on performance tuning.

I have a script that is approximately 30,000 lines long (it&#039;s a simulator)... I&#039;ve recently begun to hack out logical pieces of the script and place them in separate files... as the script will run, it will include whatever applicable file is needed at that time.

I&#039;ve read that having a massive number of includes can actually reduce performance due to file I/O delays.

At what point do the delays from the includes start to outweigh the parse time of a single large script?</description>
		<content:encoded><![CDATA[<p>been looking around the web for a good article on performance tuning.</p>
<p>I have a script that is approximately 30,000 lines long (it&#8217;s a simulator)&#8230; I&#8217;ve recently begun to hack out logical pieces of the script and place them in separate files&#8230; as the script will run, it will include whatever applicable file is needed at that time.</p>
<p>I&#8217;ve read that having a massive number of includes can actually reduce performance due to file I/O delays.</p>
<p>At what point do the delays from the includes start to outweigh the parse time of a single large script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kvz</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-66151</link>
		<dc:creator>kvz</dc:creator>
		<pubDate>Sat, 06 Oct 2007 16:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-66151</guid>
		<description>Another article about optimizing the performance of apache &amp; php for high traffic loads:
http://kevin.vanzonneveld.net/techblog/article/survive_heavy_traffic_with_your_webserver</description>
		<content:encoded><![CDATA[<p>Another article about optimizing the performance of apache &amp; php for high traffic loads:<br />
<a href="http://kevin.vanzonneveld.net/techblog/article/survive_heavy_traffic_with_your_webserver" rel="nofollow">http://kevin.vanzonneveld.net/techblog/article/survive_heavy_traffic_with_your_webserver</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TruePath</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-56512</link>
		<dc:creator>TruePath</dc:creator>
		<pubDate>Mon, 25 Jun 2007 22:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-56512</guid>
		<description>So long as you aren&#039;t modifying the arrays passing by reference shouldn&#039;t be any faster.  It is my understanding (from a comment posted in the PHP manual on references) that internally php always passes/assigns by reference adding appropriate copy on write flags so data can masquerade as a copy.

In any case it is far from clear that passing by reference results in better performance *unless* you want to modify the values in the array and have those changes show up in two places.</description>
		<content:encoded><![CDATA[<p>So long as you aren&#8217;t modifying the arrays passing by reference shouldn&#8217;t be any faster.  It is my understanding (from a comment posted in the PHP manual on references) that internally php always passes/assigns by reference adding appropriate copy on write flags so data can masquerade as a copy.</p>
<p>In any case it is far from clear that passing by reference results in better performance *unless* you want to modify the values in the array and have those changes show up in two places.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Eure</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-34204</link>
		<dc:creator>Ian Eure</dc:creator>
		<pubDate>Tue, 06 Mar 2007 19:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-34204</guid>
		<description>Hans,
Thanks for the feedback. I ran these tests a while back, and have not re-run them with PHP 5. The situation with some of these items has changed; for example, PHP 5 supports foreach by reference, which PHP 4 did not. The variability of these factors is precisely why I implore people to test different scenarios to find the best balance for their use-case.

You’re absolutely right that there is a trade-off of clarity vs. speed for string operations. It’s an individual choice as to whether it’s a win or not.</description>
		<content:encoded><![CDATA[<p>Hans,<br />
Thanks for the feedback. I ran these tests a while back, and have not re-run them with PHP 5. The situation with some of these items has changed; for example, PHP 5 supports foreach by reference, which PHP 4 did not. The variability of these factors is precisely why I implore people to test different scenarios to find the best balance for their use-case.</p>
<p>You’re absolutely right that there is a trade-off of clarity vs. speed for string operations. It’s an individual choice as to whether it’s a win or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Duedal</title>
		<link>http://atomized.org/2005/04/php-performance-best-practices/comment-page-1/#comment-34158</link>
		<dc:creator>Hans Duedal</dc:creator>
		<pubDate>Tue, 06 Mar 2007 10:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://atomized.org/2005/04/php-performance-checklist/#comment-34158</guid>
		<description>My studies of &quot;string concatenation instead of sprintf()&quot; show a 20% performance increase in favor of string concatenation. Not 100% as you mentioned. I many cases I would prefer sprintf for the clarity the syntax provides when the speed increase is no more than in average 20%.
This is testet on PHP 5.2.1 running in CLI mode on Ubuntu.</description>
		<content:encoded><![CDATA[<p>My studies of &#8220;string concatenation instead of sprintf()&#8221; show a 20% performance increase in favor of string concatenation. Not 100% as you mentioned. I many cases I would prefer sprintf for the clarity the syntax provides when the speed increase is no more than in average 20%.<br />
This is testet on PHP 5.2.1 running in CLI mode on Ubuntu.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
