<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4-libertus1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Investigating WordPress 2.0.4 Performance</title>
	<link>/libertus/2006/08/06/wordpress-204-performance/</link>
	<description>The languishing ex-blog of a bloke with a job</description>
	<pubDate>Wed, 20 Aug 2008 12:50:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4-libertus1</generator>

	<item>
		<title>by: Libertus</title>
		<link>/libertus/2006/08/06/wordpress-204-performance/#comment-8778</link>
		<pubDate>Sat, 12 Aug 2006 11:21:58 +0000</pubDate>
		<guid>/libertus/2006/08/06/wordpress-204-performance/#comment-8778</guid>
					<description>&lt;h3&gt;Performance Probe Plugin&lt;/h3&gt;

Thanks to MarkJaquith on #wordpress for this freaky idea, which works! With a different one-line change to &lt;code&gt;do_action()&lt;/code&gt;, the performance probe becomes a plugin.

&lt;blockquote&gt;&lt;pre&gt;&lt;code&gt;function do_action($tag, $arg = '') {
  if( $tag != 'do_action' ) do_action( 'do_action', $tag );&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;

I also experimented with a non-invasive plugin using &lt;code&gt;add_action( 'all', 'performance_probe' );&lt;/code&gt; but this gets called for all &lt;em&gt;filters&lt;/em&gt; too and so generates too much information to be useful.</description>
		<content:encoded><![CDATA[<h3>Performance Probe Plugin</h3>
<p>Thanks to MarkJaquith on #wordpress for this freaky idea, which works! With a different one-line change to <code>do_action()</code>, the performance probe becomes a plugin.</p>
<blockquote><pre><code>function do_action($tag, $arg = '') {
  if( $tag != 'do_action' ) do_action( 'do_action', $tag );</code></pre>
</blockquote>
<p>I also experimented with a non-invasive plugin using <code>add_action( 'all', 'performance_probe' );</code> but this gets called for all <em>filters</em> too and so generates too much information to be useful.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Libertus</title>
		<link>/libertus/2006/08/06/wordpress-204-performance/#comment-8765</link>
		<pubDate>Sun, 06 Aug 2006 16:05:23 +0000</pubDate>
		<guid>/libertus/2006/08/06/wordpress-204-performance/#comment-8765</guid>
					<description>&lt;h3&gt;The "Smiley" Performance Monitor Plugin for WordPress&lt;/h3&gt;

Just for fun. Whilst activated, it puts a couple of smilies at the top-left of the page to indicate how hard WordPress had to work to make the page.

&lt;a href="/libertus/wordpress-plugins/#smiley-performance-monitor"&gt;"Smiley" Peformance Monitor plugin for WordPress&lt;/a&gt;</description>
		<content:encoded><![CDATA[<h3>The &#8220;Smiley&#8221; Performance Monitor Plugin for WordPress</h3>
<p>Just for fun. Whilst activated, it puts a couple of smilies at the top-left of the page to indicate how hard WordPress had to work to make the page.</p>
<p><a href="/libertus/wordpress-plugins/#smiley-performance-monitor">&#8220;Smiley&#8221; Peformance Monitor plugin for WordPress</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Libertus</title>
		<link>/libertus/2006/08/06/wordpress-204-performance/#comment-8763</link>
		<pubDate>Sun, 06 Aug 2006 13:06:06 +0000</pubDate>
		<guid>/libertus/2006/08/06/wordpress-204-performance/#comment-8763</guid>
					<description>&lt;h3&gt;Upgrade Problem or Not?&lt;/h3&gt;

This probably isn't &lt;em&gt;the&lt;/em&gt; upgrade problem, but it is certainly a problem one might encounter upon upgrade to a version that contains this inefficient search code. Using the &lt;is:product from="http://trac.wordpress.org"&gt;WordPress Trac&lt;/is:product&gt; I can browse the source looking back through the versions to find out in which the offending code was introduced.

&lt;dl&gt;
&lt;dt&gt;&lt;a href="http://trac.wordpress.org/browser/tags/2.0.4/wp-includes/classes.php"&gt;2.0.4&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;Contains at &lt;a href="http://trac.wordpress.org/browser/tags/2.0.4/wp-includes/classes.php#L379"&gt;line 379&lt;/a&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;a href="http://trac.wordpress.org/browser/tags/2.0.3/wp-includes/classes.php"&gt;2.0.3&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;Contains at &lt;a href="http://trac.wordpress.org/browser/tags/2.0.3/wp-includes/classes.php#L378"&gt;line 378&lt;/a&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;a href="http://trac.wordpress.org/browser/tags/2.0.2/wp-includes/classes.php"&gt;2.0.2&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;Contains at &lt;a href="http://trac.wordpress.org/browser/tags/2.0.2/wp-includes/classes.php#L378"&gt;line 378&lt;/a&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;a href="http://trac.wordpress.org/browser/tags/2.0.1/wp-includes/classes.php"&gt;2.0.1&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;Contains at &lt;a href="http://trac.wordpress.org/browser/tags/2.0.1/wp-includes/classes.php#L378"&gt;line 378&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;

No, this isn't an upgrade problem &lt;em&gt;at all&lt;/em&gt;. It's just a problem my blog already has. :)</description>
		<content:encoded><![CDATA[<div id='outreach-1' class='outreach-control' title='outreach is available'>
<a class='outreach' href='/libertus/outreach/#help' title='help for outreach' rel='nofollow'>outreach</a>
<ul>
<li title='no outreach'><a href='/libertus/2006/08/06/wordpress-204-performance/?outreach=none#outreach-1' rel='nofollow'>none</a></li>
<li title='balanced outreach (current)'>~</li>
</ul>
</div>
<h3>Upgrade Problem or Not?</h3>
<p>This probably isn&#8217;t <em>the</em> upgrade problem, but it is certainly a problem one might encounter upon upgrade to a version that contains this inefficient search code. Using the <is:product from="http://trac.wordpress.org"><a class='outreach' href='http://trac.wordpress.org'>WordPress Trac</a></is:product> I can browse the source looking back through the versions to find out in which the offending code was introduced.</p>
<dl>
<dt><a href="http://trac.wordpress.org/browser/tags/2.0.4/wp-includes/classes.php">2.0.4</a></dt>
<dd>Contains at <a href="http://trac.wordpress.org/browser/tags/2.0.4/wp-includes/classes.php#L379">line 379</a></dd>
<dt><a href="http://trac.wordpress.org/browser/tags/2.0.3/wp-includes/classes.php">2.0.3</a></dt>
<dd>Contains at <a href="http://trac.wordpress.org/browser/tags/2.0.3/wp-includes/classes.php#L378">line 378</a></dd>
<dt><a href="http://trac.wordpress.org/browser/tags/2.0.2/wp-includes/classes.php">2.0.2</a></dt>
<dd>Contains at <a href="http://trac.wordpress.org/browser/tags/2.0.2/wp-includes/classes.php#L378">line 378</a></dd>
<dt><a href="http://trac.wordpress.org/browser/tags/2.0.1/wp-includes/classes.php">2.0.1</a></dt>
<dd>Contains at <a href="http://trac.wordpress.org/browser/tags/2.0.1/wp-includes/classes.php#L378">line 378</a></dd>
</dl>
<p>No, this isn&#8217;t an upgrade problem <em>at all</em>. It&#8217;s just a problem my blog already has. <img src='/libertus/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
