Skip to content

ext/mysqli: various array optimisations. #18386

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

Closed
wants to merge 1 commit into from

Conversation

devnexen
Copy link
Member

pre-allocated sizes and/or packed arrays.

pre-allocated sizes and/or packed arrays.
@devnexen devnexen marked this pull request as ready for review April 21, 2025 14:54
@kamil-tekiela
Copy link
Member

I don't know enough about PHP internal intricacies to say which one is more correct here. All I can say is that I tested this PR and I observed no difference in performance.

@devnexen
Copy link
Member Author

The benefits should be a bit more obvious on the mysqli_fetch* changes but that might depend of the number of entries

@kamil-tekiela
Copy link
Member

mysqli_fetch_all is now 35% slower with this PR.

@devnexen
Copy link
Member Author

oh did not expect such negative hit :( thx for checking.

@devnexen devnexen closed this Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants