Skip to content

Commit a49e29a

Browse files
committed
ext/tidy: array optimisations, children node arrays as packed.
1 parent 158181f commit a49e29a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/tidy/tidy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ static void tidy_add_node_default_properties(PHPTidyObj *obj)
705705

706706
if (tempnode) {
707707
array_init(&children);
708+
zend_hash_real_init_packed(Z_ARRVAL(children));
708709
do {
709710
tidy_create_node_object(&temp, obj->ptdoc, tempnode);
710711
add_next_index_zval(&children, &temp);

0 commit comments

Comments
 (0)