<?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 for planetOzh</title>
	<atom:link href="http://planetozh.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://planetozh.com/blog</link>
	<description>A bit of my personal life, mainly focused on my kids. A bit of code, mainly focused on Wordpress and PHP. Overall, bits of nothing in particular.</description>
	<lastBuildDate>Mon, 15 Mar 2010 07:11:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Speeding Things with PHP Output Buffer by Ozh</title>
		<link>http://planetozh.com/blog/2006/05/speeding-things-with-php-output-buffer/comment-page-1/#comment-101374</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Mon, 15 Mar 2010 07:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://frenchfragfactory.net/ozh/archives/2006/05/05/speeding-things-with-php-output-buffer/#comment-101374</guid>
		<description>Will Anderson » hey Will thanks for commenting on this 4 yo post :) Yeah, my interpretation was something similar, but for some reason (at that time at least) I was a bit scared by OB, it seemed to me that would be a slow beast.</description>
		<content:encoded><![CDATA[<p>Will Anderson » hey Will thanks for commenting on this 4 yo post :) Yeah, my interpretation was something similar, but for some reason (at that time at least) I was a bit scared by OB, it seemed to me that would be a slow beast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Speeding Things with PHP Output Buffer by Will Anderson</title>
		<link>http://planetozh.com/blog/2006/05/speeding-things-with-php-output-buffer/comment-page-1/#comment-101356</link>
		<dc:creator>Will Anderson</dc:creator>
		<pubDate>Mon, 15 Mar 2010 00:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://frenchfragfactory.net/ozh/archives/2006/05/05/speeding-things-with-php-output-buffer/#comment-101356</guid>
		<description>OK, so this is a ~4 year old post, so I feel sort of silly commenting on it, but since you linked to it on Twitter I thought I&#039;d throw my own two cents into the interpretation of the outcome.

In your first example, the reason buffering performs better is not because output buffering in itself is more efficient.  in fact, the opposite is generally true, especially when memory consumption is considered.

The reason the first example ran faster with output buffering is because of the way string concatenation works in PHP (and most other languages). Strings aren&#039;t mutable, so when you concatenate two strings, a completely new string is created in memory and the contents of the other two strings are copped into the new string. Do this several thousand times and you can start to see the inefficiency that this causes.

Most other languages offer a &quot;string buffering&quot; classes like StringBuffer in Java and StringBuilder in C#. As far as I know, PHP doesn&#039;t offer a facility like this, so using output buffering could be the way to go, but only in this specific case (where you&#039;re concatenating lots of strings). In general, output buffering will be much slower, as you saw in your other example.

I&#039;d also note that the reason the &#039;include&#039; method was so much slower in the second example because it was executed in the PHP interpreter context, which goes MUCH slower than simply reading in the bytes (because PHP has to actually evaluate the file to see if there is any code that needs to be executed).

At any rate, those are my thoughts on output buffering. There are certainly places where it is useful, but in general it doesn&#039;t improve performance at all.</description>
		<content:encoded><![CDATA[<p>OK, so this is a ~4 year old post, so I feel sort of silly commenting on it, but since you linked to it on Twitter I thought I&#8217;d throw my own two cents into the interpretation of the outcome.</p>
<p>In your first example, the reason buffering performs better is not because output buffering in itself is more efficient.  in fact, the opposite is generally true, especially when memory consumption is considered.</p>
<p>The reason the first example ran faster with output buffering is because of the way string concatenation works in PHP (and most other languages). Strings aren&#8217;t mutable, so when you concatenate two strings, a completely new string is created in memory and the contents of the other two strings are copped into the new string. Do this several thousand times and you can start to see the inefficiency that this causes.</p>
<p>Most other languages offer a &#8220;string buffering&#8221; classes like StringBuffer in Java and StringBuilder in C#. As far as I know, PHP doesn&#8217;t offer a facility like this, so using output buffering could be the way to go, but only in this specific case (where you&#8217;re concatenating lots of strings). In general, output buffering will be much slower, as you saw in your other example.</p>
<p>I&#8217;d also note that the reason the &#8216;include&#8217; method was so much slower in the second example because it was executed in the PHP interpreter context, which goes MUCH slower than simply reading in the bytes (because PHP has to actually evaluate the file to see if there is any code that needs to be executed).</p>
<p>At any rate, those are my thoughts on output buffering. There are certainly places where it is useful, but in general it doesn&#8217;t improve performance at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Admin Drop Down Menu: More Goodness &amp; an API by Astropeg</title>
		<link>http://planetozh.com/blog/2008/08/admin-drop-down-menu-more-goodness-an-api/comment-page-1/#comment-101295</link>
		<dc:creator>Astropeg</dc:creator>
		<pubDate>Sat, 13 Mar 2010 20:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=925#comment-101295</guid>
		<description>Thanks for taking the time to respond Ozh, I will get to the bottom of this because I don&#039;t want to ever be on a wordpress admin page without your plugin.  It should be part of the core of wordpress as many folks have mentioned on other forums. It truly is my favorite plugin and every time I see the menu bar I smile! Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for taking the time to respond Ozh, I will get to the bottom of this because I don&#8217;t want to ever be on a wordpress admin page without your plugin.  It should be part of the core of wordpress as many folks have mentioned on other forums. It truly is my favorite plugin and every time I see the menu bar I smile! Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Admin Drop Down Menu: More Goodness &amp; an API by Ozh</title>
		<link>http://planetozh.com/blog/2008/08/admin-drop-down-menu-more-goodness-an-api/comment-page-1/#comment-101286</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Sat, 13 Mar 2010 17:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=925#comment-101286</guid>
		<description>Astropeg » the thing is: the plugin &lt;b&gt;cannot&lt;/b&gt; &quot;affect&quot; the public part. It is coded so that it simply &lt;em&gt;does not load&lt;/em&gt; when viewing the public part. Thus, I&#039;m afraid I can&#039;t help, sorry.</description>
		<content:encoded><![CDATA[<p>Astropeg » the thing is: the plugin <b>cannot</b> &#8220;affect&#8221; the public part. It is coded so that it simply <em>does not load</em> when viewing the public part. Thus, I&#8217;m afraid I can&#8217;t help, sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Admin Drop Down Menu: More Goodness &amp; an API by Astropeg</title>
		<link>http://planetozh.com/blog/2008/08/admin-drop-down-menu-more-goodness-an-api/comment-page-1/#comment-101271</link>
		<dc:creator>Astropeg</dc:creator>
		<pubDate>Sat, 13 Mar 2010 12:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=925#comment-101271</guid>
		<description>This is all very strange then.  I am not sure how 2 different sites could be affected the same way when the plugin was installed and uninstalled.

Do you have any suggestions? Can you help me? I would really like to be able to use your plugin on the 2 mentioned sites.

I do appreciate you taking the time to help me.</description>
		<content:encoded><![CDATA[<p>This is all very strange then.  I am not sure how 2 different sites could be affected the same way when the plugin was installed and uninstalled.</p>
<p>Do you have any suggestions? Can you help me? I would really like to be able to use your plugin on the 2 mentioned sites.</p>
<p>I do appreciate you taking the time to help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Admin Drop Down Menu: More Goodness &amp; an API by Ozh</title>
		<link>http://planetozh.com/blog/2008/08/admin-drop-down-menu-more-goodness-an-api/comment-page-1/#comment-101268</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Sat, 13 Mar 2010 12:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=925#comment-101268</guid>
		<description>Astropeg » if you deactivate the plugin, it&#039;s deactivated for good. It does not &quot;affect&quot; code. Plus, my plugin does nothing to the public part of the blog. Actually it does not even load in memory when you&#039;re not viewing the admin area.</description>
		<content:encoded><![CDATA[<p>Astropeg » if you deactivate the plugin, it&#8217;s deactivated for good. It does not &#8220;affect&#8221; code. Plus, my plugin does nothing to the public part of the blog. Actually it does not even load in memory when you&#8217;re not viewing the admin area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Admin Drop Down Menu: More Goodness &amp; an API by Astropeg</title>
		<link>http://planetozh.com/blog/2008/08/admin-drop-down-menu-more-goodness-an-api/comment-page-1/#comment-101265</link>
		<dc:creator>Astropeg</dc:creator>
		<pubDate>Sat, 13 Mar 2010 12:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=925#comment-101265</guid>
		<description>Is it possible that the plugin may have affected some of the code in the Theme/template files? I do not know what to look for because I am not a code writer/webmaster and I may not be communicating this correctly but it seems that the size of the image files for the header and top of the page have been affected.  I am using the Thesis theme as well as custom headers.

Again, 2 sites were affected in the same way following the installation of the plugin:
http://mattpapanek.com/
http://lunafengshui.com/

Thank you again for your time Ozh!</description>
		<content:encoded><![CDATA[<p>Is it possible that the plugin may have affected some of the code in the Theme/template files? I do not know what to look for because I am not a code writer/webmaster and I may not be communicating this correctly but it seems that the size of the image files for the header and top of the page have been affected.  I am using the Thesis theme as well as custom headers.</p>
<p>Again, 2 sites were affected in the same way following the installation of the plugin:<br />
<a href="http://mattpapanek.com/" rel="nofollow">http://mattpapanek.com/</a><br />
<a href="http://lunafengshui.com/" rel="nofollow">http://lunafengshui.com/</a></p>
<p>Thank you again for your time Ozh!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Admin Drop Down Menu: More Goodness &amp; an API by Astropeg</title>
		<link>http://planetozh.com/blog/2008/08/admin-drop-down-menu-more-goodness-an-api/comment-page-1/#comment-101258</link>
		<dc:creator>Astropeg</dc:creator>
		<pubDate>Sat, 13 Mar 2010 10:51:26 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=925#comment-101258</guid>
		<description>Thank you for responding so fast Ozh!

Actually, there were no problems with the public view of the page display on either site until I installed the plugin.  This seems odd to me since the plugin is for admin page functionality. 

When I installed the plugin, I did not do anything else except select a color for the menu bar and check the box to hide the speech bubbles. I did nothing else but install your great plugin.  

I really love this plugin and am hoping to find a solution.

Thank you again for your fast response and your help!  Oh, and I wanted to donate but the paypal page came up in French...</description>
		<content:encoded><![CDATA[<p>Thank you for responding so fast Ozh!</p>
<p>Actually, there were no problems with the public view of the page display on either site until I installed the plugin.  This seems odd to me since the plugin is for admin page functionality. </p>
<p>When I installed the plugin, I did not do anything else except select a color for the menu bar and check the box to hide the speech bubbles. I did nothing else but install your great plugin.  </p>
<p>I really love this plugin and am hoping to find a solution.</p>
<p>Thank you again for your fast response and your help!  Oh, and I wanted to donate but the paypal page came up in French&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Admin Drop Down Menu: More Goodness &amp; an API by Ozh</title>
		<link>http://planetozh.com/blog/2008/08/admin-drop-down-menu-more-goodness-an-api/comment-page-1/#comment-101253</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Sat, 13 Mar 2010 10:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=925#comment-101253</guid>
		<description>Astropeg » &quot;After uninstalling the plugin, the page display is still affected.&quot; so obviously my plugin does not interfere with whatever you call &quot;affecting the page display&quot;</description>
		<content:encoded><![CDATA[<p>Astropeg » &#8220;After uninstalling the plugin, the page display is still affected.&#8221; so obviously my plugin does not interfere with whatever you call &#8220;affecting the page display&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Admin Drop Down Menu: More Goodness &amp; an API by Astropeg</title>
		<link>http://planetozh.com/blog/2008/08/admin-drop-down-menu-more-goodness-an-api/comment-page-1/#comment-101251</link>
		<dc:creator>Astropeg</dc:creator>
		<pubDate>Sat, 13 Mar 2010 10:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/?p=925#comment-101251</guid>
		<description>I need some help...  I am not a code writer/programmer/webmaster (though I am learning :-) 

I installed the drop down menu on several websites.  I love it but it is affecting the page display of 2 of the websites.  One is: http://mattpapanek.com/

My webmaster is not familiar with the plugin and suggested just uninstalling it. After uninstalling the plugin, the page display is still affected.  This has happened on 2 different sites.  I reinstalled the plugin.

Before going back to the webmaster, I would like to know if there is a solution because, well, I love this plugin!

Any help would be greatly appreciated!</description>
		<content:encoded><![CDATA[<p>I need some help&#8230;  I am not a code writer/programmer/webmaster (though I am learning :-) </p>
<p>I installed the drop down menu on several websites.  I love it but it is affecting the page display of 2 of the websites.  One is: <a href="http://mattpapanek.com/" rel="nofollow">http://mattpapanek.com/</a></p>
<p>My webmaster is not familiar with the plugin and suggested just uninstalling it. After uninstalling the plugin, the page display is still affected.  This has happened on 2 different sites.  I reinstalled the plugin.</p>
<p>Before going back to the webmaster, I would like to know if there is a solution because, well, I love this plugin!</p>
<p>Any help would be greatly appreciated!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
