Skip to content

Library macros #11

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 12 commits into
base: develop
Choose a base branch
from
Open

Library macros #11

wants to merge 12 commits into from

Conversation

JakubOnderka
Copy link
Owner

No description provided.

michael-grunder and others added 12 commits November 15, 2024 08:59
We know in advance the array size, so it makes sense to avoid reallocation when adding new elements. Also use immutable empty array in when we know in advance that redis will return zero elements.
From PHP 8, empty strings or string with one character don't need to be allocated. This change will reduce memory usage.
Initialize array with know size and reuse already allocated keys
Deduplicate code that is used in many methods. Also optimise adding new element to array in pipeline mode and returning zval in atomic mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants