<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Weez.com &#187; recompile</title>
	<atom:link href="http://www.weez.com/tag/recompile/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weez.com</link>
	<description>Solving everyday practical LAMP problems... one at a time</description>
	<lastBuildDate>Sat, 31 Jul 2010 00:10:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP Optimizations</title>
		<link>http://www.weez.com/2008/09/php-optimizations/</link>
		<comments>http://www.weez.com/2008/09/php-optimizations/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 00:11:01 +0000</pubDate>
		<dc:creator>Abidoon</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[recompile]]></category>

		<guid isPermaLink="false">http://www.weez.com/?p=3</guid>
		<description><![CDATA[How to get additional performance out of php.]]></description>
			<content:encoded><![CDATA[<p>Anyone ever try and optimize PHP recently?</p>
<p>The following settings worked really well for me</p>
<p>1 &#8211; export CFLAGS=&#8221;-march=cpu -O3 -pipe -msse2 -m3dnow -fomit-frame-pointer -mtune=cpu&#8221;</p>
<p>Based on whatever processor architecture you were using you should then replace the cpu in the above line with the name of the processor as described in <a href="http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/i386-and-x86_002d64-Options.html" rel="nofollow" target="new">GCC Manual</a></p>
<p>2 &#8211; Try configuring with the following flags added: &#8211;enable-inline-optimization</p>
<p>3 &#8211; Once compiled use strip to reduce the PHP binary size like so -&gt; strip php-cgi <img src='http://www.weez.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>4 &#8211; For a significant performance boost I would recommend the installation of an opcode cache such as x-cache. If you don&#8217;t know what an opcode cacher is or does go <a href="http://en.wikipedia.org/wiki/PHP_accelerator" rel="nofollow" target="new"/>here</a></p>
<p>The above mentioned optimizations led to more than 50% increase in speed and a more than 50% drop in cpu usage. Please feel free to make additional suggestions on how I can squeeze more performance  out <img src='http://www.weez.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  !</p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weez.com/2008/09/php-optimizations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
