<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 20 May 2013 00:28:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Johannes Schluter's Blog: HashTables]]></title>
      <guid>http://www.phpdeveloper.org/news/15000</guid>
      <link>http://www.phpdeveloper.org/news/15000</link>
      <description><![CDATA[<p>
<i>Johannes Schluter</i> has <a href="http://schlueters.de/blog/archives/142-HashTables.html">a new post</a> to his blog on another PHP internals related topic - hashtables.
</p>
<blockquote>
While preparing my "<a href="http://phpconference.nl/schedule/talks#phphood">PHP Under The Hood</a>" talk for the Dutch PHP Conference there was a question on IRC about <a href="http://php.net/extension_loaded">extension_loaded</a>() being faster than <a href="http://php.net/function_exists">function_exists</a>(), which might be strange as both of them are simple hash lookups and a hash lookup is said to be O(1). I started to write some slides for it but figured out that I won't have the time to go through it during that presentation, so I'm doing this now.
</blockquote>
<p>
He talks about array storage (a "real" array), numeric and string-based keys, the internals of how each is stored and how the differences make the one function faster than the other (hint: it's all <a href="http://schlueters.de/~johannes/php/collisions.txt">about collisions</a>).
</p>]]></description>
      <pubDate>Mon, 23 Aug 2010 08:58:43 -0500</pubDate>
    </item>
  </channel>
</rss>
