]> granicus.if.org Git - php/commit
Add zend_hash_reindex
authorNikita Popov <nikic@php.net>
Tue, 8 Apr 2014 09:17:17 +0000 (11:17 +0200)
committerNikita Popov <nikic@php.net>
Wed, 9 Apr 2014 10:31:21 +0000 (12:31 +0200)
commit1aa8719e32663fbfcad9668364fbac0bc415b678
tree22285673a59fdcac958bee6b78ad204a3f650ed1
parenteaf44ec397cc3286107166ce51bac03bf6bc8f83
Add zend_hash_reindex

The implementation differs from the original in array.c in that it
rehashes the hashtable in the same loop. This is approximately two
times faster (not counting the rare case of a purely associative
array).
Zend/zend_hash.c
Zend/zend_hash.h
ext/standard/array.c