mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
MFB: Optimize out zend_hash_num_elements() call
This commit is contained in:
parent
e2b3141df2
commit
5da2c7a6df
@ -1863,7 +1863,7 @@ static void sdl_serialize_type(sdlTypePtr type, HashTable *tmp_encoders, HashTab
|
|||||||
sdlTypePtr *tmp;
|
sdlTypePtr *tmp;
|
||||||
|
|
||||||
tmp_elements = emalloc(sizeof(HashTable));
|
tmp_elements = emalloc(sizeof(HashTable));
|
||||||
zend_hash_init(tmp_elements, 0, NULL, NULL, 0);
|
zend_hash_init(tmp_elements, i, NULL, NULL, 0);
|
||||||
|
|
||||||
zend_hash_internal_pointer_reset(type->elements);
|
zend_hash_internal_pointer_reset(type->elements);
|
||||||
while (zend_hash_get_current_data(type->elements, (void**)&tmp) == SUCCESS) {
|
while (zend_hash_get_current_data(type->elements, (void**)&tmp) == SUCCESS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user