Skip to content

ext/openssl: various arrays optimisations. #18377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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