News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Johannes Schluter's Blog:
HashTables
August 23, 2010 @ 08:58:43

Johannes Schluter has a new post to his blog on another PHP internals related topic - hashtables.

While preparing my "PHP Under The Hood" talk for the Dutch PHP Conference there was a question on IRC about extension_loaded() being faster than function_exists(), 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.

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 about collisions).

0 comments voice your opinion now!
hashtable array storage variable functionexists extensonloaded


blog comments powered by Disqus

Similar Posts

Matthew Weir O'Phinney's Blog: Zend_Form Advanced Features

DevShed: Using Subclasses and Accessors with Member Visibility to Protect PHP 5 Class Data

Evolt.org: Working With Fractions In CSS and PHP

Christopher Jones' Blog: Casting PL/SQL arrays as REF CURSORS for Ruby (and PHP)

Matthew Weir O'Phinney's Blog: Overloading arrays in PHP 5.2.0


Community Events











Don't see your event here?
Let us know!


component install composer application security symfony2 introduction unittest code podcast performance package database threedevsandamaybe hack release language facebook framework hhvm

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework