<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>iBlog - Ilia Alshanetsky - Comments</title>
    <link>http://ilia.ws/</link>
    <description>iBlog - Ilia Alshanetsky - Here be dragons.</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:" />
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    
    <image>
        <url>http://ilia.ws/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: iBlog - Ilia Alshanetsky - Comments - iBlog - Ilia Alshanetsky - Here be dragons.</title>
        <link>http://ilia.ws/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Robyn: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204614</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Robyn)</author>
    <content:encoded>
    Howdy! Someone in my Facebook group shared this site with us so I came to take a look.&lt;br /&gt;
I&#039;m definitely enjoying the information. I&#039;m book-marking and will be tweeting this to my followers! Exceptional blog and superb design. 
    </content:encoded>

    <pubDate>Mon, 02 Apr 2012 07:53:32 -0400</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204614</guid>
    
</item>
<item>
    <title>Lyndon: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204568</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Lyndon)</author>
    <content:encoded>
    Very nice post. I just stumbled upon your weblog and wanted &lt;br /&gt;
to say that I&#039;ve truly enjoyed browsing your blog posts. In any case I&#039;ll be subscribing in your rss feed and I am hoping you write once more soon! 
    </content:encoded>

    <pubDate>Thu, 29 Mar 2012 08:56:37 -0400</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204568</guid>
    
</item>
<item>
    <title>Alex: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204282</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Alex)</author>
    <content:encoded>
    I was a bit surprized by the fact, so wandered if empty() gives some different results.&lt;br /&gt;
&lt;br /&gt;
At the original test I added the following code:&lt;br /&gt;
&lt;br /&gt;
$s = microtime(1);&lt;br /&gt;
for ($i = 0; $i &lt; 100000; $i++) {&lt;br /&gt;
  empty($arr[&#039;abracadabra&#039;]);&lt;br /&gt;
}&lt;br /&gt;
$e = microtime(1);&lt;br /&gt;
echo &quot;empty: &quot;.($e - $s).&quot;\n&quot;;&lt;br /&gt;
&lt;br /&gt;
The results I got on PHP 5.3.6-13ubuntu3.6 (with XCache v1.3.2, Xdebug v2.1.0, Suhosin v0.9.32.1)&lt;br /&gt;
&lt;br /&gt;
isset: 0.05509090423584&lt;br /&gt;
array_key_exists: 0.22666001319885&lt;br /&gt;
empty: 0.023635864257812 
    </content:encoded>

    <pubDate>Tue, 06 Mar 2012 06:53:58 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204282</guid>
    
</item>
<item>
    <title>Seva Lapsha: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204267</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Seva Lapsha)</author>
    <content:encoded>
    In easytobook we had an edge case of average half a million loop cycles with 3-4 checks per cycle. We saved significant time not just on this example, but also on sacrificing the magic code in favor of public properties and explicit calls. 
    </content:encoded>

    <pubDate>Mon, 05 Mar 2012 04:36:17 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204267</guid>
    
</item>
<item>
    <title>Nik: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204260</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Nik)</author>
    <content:encoded>
    I always use this to replace the use of array_key_exists() alone:&lt;br /&gt;
&lt;br /&gt;
if (isset(..) || array_key_exists(...))&lt;br /&gt;
{&lt;br /&gt;
...&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
It takes the performance advantage of isset() while keeping the NULL element detected correctly.&lt;br /&gt;
&lt;br /&gt;
Detail explanation see this blog post:&lt;br /&gt;
http://www.zomeoff.com/php-fast-way-to-determine-a-key-elements-existance-in-an-array/ 
    </content:encoded>

    <pubDate>Sun, 04 Mar 2012 16:55:02 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204260</guid>
    
</item>
<item>
    <title>Dynom: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204256</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Dynom)</author>
    <content:encoded>
    Hahaha, thanks for that. That just made my day. 
    </content:encoded>

    <pubDate>Sun, 04 Mar 2012 03:45:46 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204256</guid>
    
</item>
<item>
    <title>Ilia Alshanetsky: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204245</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Ilia Alshanetsky)</author>
    <content:encoded>
    That&#039;s a scary thought... 
    </content:encoded>

    <pubDate>Sat, 03 Mar 2012 12:54:32 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204245</guid>
    
</item>
<item>
    <title>Stas: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204244</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Stas)</author>
    <content:encoded>
    Do you hear that clicking? It is the sound of 1000s of application writers rewriting their key_exists to issets. Because now it&#039;s proven it is 10 times faster! So if my app is slow, it&#039;s because of that, not because I do a million of them each function call &lt;img src=&quot;http://ilia.ws/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Sat, 03 Mar 2012 12:38:57 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204244</guid>
    
</item>
<item>
    <title>Paul Reinheimer: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204243</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Paul Reinheimer)</author>
    <content:encoded>
    funny this comes up now. I specifically called this out as something not to care about in my perf. talk &lt;img src=&quot;http://ilia.ws/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Sat, 03 Mar 2012 12:11:52 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204243</guid>
    
</item>
<item>
    <title>Jan Schneider: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204242</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Jan Schneider)</author>
    <content:encoded>
    We noticed this already 9 years ago, granted this was back in PHP 4 days:&lt;br /&gt;
https://groups.google.com/forum/?fromgroups#!topic/mailing.www.horde-dev/a5D8ts2D67U&lt;br /&gt;
It even went into our coding standards: http://www.horde.org/apps/horde/docs/CODING_STANDARDS#existence-checking&lt;br /&gt;
I have to admit, we never ran a benchmark again, since this made it into our standard. But then again, we didn&#039;t have any reason to change what became second nature to us. 
    </content:encoded>

    <pubDate>Sat, 03 Mar 2012 11:42:10 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204242</guid>
    
</item>
<item>
    <title>Ilia Alshanetsky: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204241</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Ilia Alshanetsky)</author>
    <content:encoded>
    PHP 5.3 is a little slower, but not a whole lot, the same code on 5.3 took about the same time to run.&lt;br /&gt;
&lt;br /&gt;
PHP 5.3:&lt;br /&gt;
Isset: 0.0249950885773&lt;br /&gt;
array_key_exists: 0.0579879283905 
    </content:encoded>

    <pubDate>Sat, 03 Mar 2012 10:53:56 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204241</guid>
    
</item>
<item>
    <title>Colin Mollenhour: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204240</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Colin Mollenhour)</author>
    <content:encoded>
    50k calls in one request? What on earth is it doing? It is great to know that PHP 5.4 makes such an improvement though! 
    </content:encoded>

    <pubDate>Sat, 03 Mar 2012 10:52:18 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204240</guid>
    
</item>
<item>
    <title>Pierrick: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204239</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Pierrick)</author>
    <content:encoded>
    Héhé this explain that &lt;img src=&quot;http://ilia.ws/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; always try to do your microbench with php -n 
    </content:encoded>

    <pubDate>Sat, 03 Mar 2012 10:48:52 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204239</guid>
    
</item>
<item>
    <title>Ilia Alshanetsky: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204238</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Ilia Alshanetsky)</author>
    <content:encoded>
    Fixed the minutes vs seconds, still on 5.4 and 5.3, all I can see is a 2.5 speed difference and both operations are exceptionally fast. 
    </content:encoded>

    <pubDate>Sat, 03 Mar 2012 10:45:18 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204238</guid>
    
</item>
<item>
    <title>Ilia Alshanetsky: Performance Analysis of isset() vs array_key_exists() </title>
    <link>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#c204236</link>
            <category></category>
    
    <comments>http://ilia.ws/archives/247-Performance-Analysis-of-isset-vs-array_key_exists.html#comments</comments>
    <wfw:comment>http://ilia.ws/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Ilia Alshanetsky)</author>
    <content:encoded>
    I ran the code on PHP 5.3.8 and the results were largely the same. 
    </content:encoded>

    <pubDate>Sat, 03 Mar 2012 10:43:48 -0500</pubDate>
    <guid isPermaLink="false">http://ilia.ws/archives/247-guid.html#c204236</guid>
    
</item>

</channel>
</rss>
