Skip to content

Conversation

devnexen
Copy link
Member

pre-allocated sizes and/or packed arrays.

pre-allocated sizes and/or packed arrays.
Comment on lines 1078 to 1079
array_init_size(&subsub, 3);
zend_hash_real_init_packed(Z_ARRVAL(subsub));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this gives visible performance improvement, why don't you create array_init variants (e.g. array_init_packed and array_init_size_packed)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just might. Not huge differences by any mean but I ran those

image

@devnexen devnexen requested a review from dstogov as a code owner April 22, 2025 11:24
@devnexen devnexen removed the request for review from dstogov April 22, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants