<?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>Wed, 19 Jun 2013 10:00:53 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Etienne Kneuss' Blog: SplFastArray to speed up your PHP arrays]]></title>
      <guid>http://www.phpdeveloper.org/news/10371</guid>
      <link>http://www.phpdeveloper.org/news/10371</link>
      <description><![CDATA[<p>
<i>Etienne Kneuss</i> has <a href="http://www.colder.ch/news/06-07-2008/33/splfastarray-to-speed-up-.html">posted about</a> a new part of the Standard PHP Library that creates arrays that are up to thirty percent faster than normal methods - SplFastArray.
</p>
<blockquote>
Antony got the idea to implement a C-like array wrapper in SPL: SplFastArray. The main advantage of that class is performance, it's indeed faster than PHP arrays. How so? No free lunch: The speedup comes from the fact that non-numeric indexes are not allowed and that the array is of fixed size.
</blockquote>
<p>
The code sample shows the setting of the size for the array (and changing it) with a var_dump of the output result. This method is always faster than normal arrays, it just varies how much from system to system (anywhere from ten to thirty percent).
</p>]]></description>
      <pubDate>Mon, 09 Jun 2008 12:54:04 -0500</pubDate>
    </item>
  </channel>
</rss>
