Skip to content

Commit 0c2025c

Browse files
authored
ext/tidy: array optimisations, children node arrays as packed. (php#18375)
1 parent 8f6bc97 commit 0c2025c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/tidy/tidy.c

+1
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)