<?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>Aditya Kothadiya&#039;s Blog &#187; performance</title>
	<atom:link href="http://adityakothadiya.com/tag/performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://adityakothadiya.com</link>
	<description>Entrepreneurship, programming, design, productivity, books, philosophy and more.</description>
	<lastBuildDate>Sun, 16 May 2010 16:20:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>What&#8217;s The Mismatch Between What Science Knows And What Businesses Do?</title>
		<link>http://adityakothadiya.com/2009/10/whats-the-mismatch-between-what-science-knows-and-what-businesses-do/</link>
		<comments>http://adityakothadiya.com/2009/10/whats-the-mismatch-between-what-science-knows-and-what-businesses-do/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 06:31:58 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Theory to Practice]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[motivation]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[results]]></category>
		<category><![CDATA[rewards]]></category>
		<category><![CDATA[ted]]></category>

		<guid isPermaLink="false">http://adityakothadiya.com/?p=504</guid>
		<description><![CDATA[Fascinating talk by Dan Pink on the surprising science of motivation at TED. Watch it -]]></description>
			<content:encoded><![CDATA[<p>Fascinating talk by Dan Pink on <a href="http://www.ted.com/talks/dan_pink_on_motivation.html">the surprising science of motivation</a> at TED.</p>
<p>Watch it -</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="446" height="326" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="bgColor" value="#ffffff" /><param name="flashvars" value="vu=http://video.ted.com/talks/dynamic/DanielPink_2009G-medium.flv&amp;su=http://images.ted.com/images/ted/tedindex/embed-posters/DanielPink-2009G.embed_thumbnail.jpg&amp;vw=432&amp;vh=240&amp;ap=0&amp;ti=618&amp;introDuration=16500&amp;adDuration=4000&amp;postAdDuration=2000&amp;adKeys=talk=dan_pink_on_motivation;year=2009;theme=the_creative_spark;theme=new_on_ted_com;theme=not_business_as_usual;theme=speaking_at_tedglobal2009;event=TEDGlobal+2009;&amp;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" /><param name="src" value="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" /><param name="bgcolor" value="#ffffff" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="446" height="326" src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" flashvars="vu=http://video.ted.com/talks/dynamic/DanielPink_2009G-medium.flv&amp;su=http://images.ted.com/images/ted/tedindex/embed-posters/DanielPink-2009G.embed_thumbnail.jpg&amp;vw=432&amp;vh=240&amp;ap=0&amp;ti=618&amp;introDuration=16500&amp;adDuration=4000&amp;postAdDuration=2000&amp;adKeys=talk=dan_pink_on_motivation;year=2009;theme=the_creative_spark;theme=new_on_ted_com;theme=not_business_as_usual;theme=speaking_at_tedglobal2009;event=TEDGlobal+2009;&amp;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" bgcolor="#ffffff" wmode="transparent" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://adityakothadiya.com/2009/10/whats-the-mismatch-between-what-science-knows-and-what-businesses-do/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Efforts Vs Results</title>
		<link>http://adityakothadiya.com/2009/09/efforts-vs-results/</link>
		<comments>http://adityakothadiya.com/2009/09/efforts-vs-results/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 14:29:08 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[Philosophy]]></category>
		<category><![CDATA[Theory to Practice]]></category>
		<category><![CDATA[efforts]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[results]]></category>

		<guid isPermaLink="false">http://adityakothadiya.com/?p=479</guid>
		<description><![CDATA[I think we often confuse efforts and results. Efforts and results are not always proportional. It&#8217;s a different story that we expect they should, but in reality, they are not. Why we confuse them? When we confuse them, we tend to recognize efforts, and reward results. Instead it should be other way around. We should [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">I think we often confuse efforts and results. Efforts and results are not always proportional. It&#8217;s a different story that we expect they should, but in reality, they are not. Why we confuse them?</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">When we confuse them, we tend to recognize efforts, and reward results. Instead it should be other way around. We should respect and reward people who are putting efforts, and recognize results if those efforts turn into good results.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">We need to understand that results are not always guaranteed. They not only depend on amount of efforts put, but also on many other things, which are not under control of a person putting efforts. Irrespective of the amount of efforts put, results can go wrong because of bad decisions, bad ideas, bad timing, bad market, or bad luck!</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Once again, don&#8217;t confuse the efforts and results. Reward efforts and recognize results. Not other way around.</div>
<p>I think we often confuse efforts and results. Efforts and results are not always proportional. It&#8217;s a different story that we expect they should, but in reality, they are not. Why we confuse them?</p>
<p>When we confuse them, we tend to recognize efforts, and reward results. Instead it should be other way around. We should respect and reward people who are putting efforts, and recognize results if those efforts turn into good results.</p>
<p>We need to understand that results are not always guaranteed. They not only depend on amount of efforts put, but also on many other things, which are most of the times not under control of a person putting efforts. Irrespective of the amount of efforts put, results can go wrong because of bad decisions, bad ideas, bad timing, bad market, or bad luck!</p>
<p>Once again, don&#8217;t confuse the efforts and results. Reward efforts and recognize results. Not other way around.</p>
]]></content:encoded>
			<wfw:commentRss>http://adityakothadiya.com/2009/09/efforts-vs-results/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The PHP Benchmark</title>
		<link>http://adityakothadiya.com/2009/04/the-php-benchmark/</link>
		<comments>http://adityakothadiya.com/2009/04/the-php-benchmark/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 18:00:01 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">http://adityakothadiya.com/?p=425</guid>
		<description><![CDATA[I just stumbled upon a website called PHP Benchmark. It&#8217;s a great resource to learn PHP tips for improving performance and speed. These are not advanced tips, but rather very simple tips that we generally don&#8217;t pay attention to in our day-to-day programming. Here is one example - Is it worth the effort to calculate [...]]]></description>
			<content:encoded><![CDATA[<p>I just stumbled upon a website called <a href="http://www.phpbench.com/" target="_blank">PHP Benchmark</a>. It&#8217;s a great resource to learn PHP tips for improving performance and speed. These are not advanced tips, but rather very simple tips that we generally don&#8217;t pay attention to in our day-to-day programming.</p>
<p>Here is one example -</p>
<p><strong>Is it worth the effort to calculate the length of the loop in advance?</strong></p>
<p>E.g. Should we use</p>
<pre class="brush: php;">

for ($i = 0; $i &lt; $size; $i++)
</pre>
<p>instead of</p>
<pre class="brush: php;">

for ($i = 0; $i &lt; sizeof($arr); $i++)
</pre>
<p>The performance result for a loop with 1000 keys with 1 byte values is as below -</p>
<blockquote><p><strong>With pre calc &#8211; count():</strong> Total time: 229 µs<br />
<strong>Without pre calc &#8211; count():</strong> Total time: 99702 µs<br />
<strong>With pre calc &#8211; sizeof(): </strong>Total time: 235 µs<br />
<strong>Without pre calc &#8211; sizeof():</strong> Total time: 99610 µs</p></blockquote>
<p>So it&#8217;s very clear that calculating the length of array in advance is way faster than calculating it in the loop.</p>
<p>I hope you&#8217;ll find other tips from PHP Benchmark website very useful too.</p>
]]></content:encoded>
			<wfw:commentRss>http://adityakothadiya.com/2009/04/the-php-benchmark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
