Skip to content
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

filterx/unset-empties: avoid using a GList for keys to unset #469

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bazsi
Copy link
Member

@bazsi bazsi commented Jan 24, 2025

Every g_list_append() is an extra allocation, so by avoiding GList altogether we can reduce the number of malloc() calls by the number of keys that we unset.

Every g_list_append() is an extra allocation.

Signed-off-by: Balazs Scheidler <[email protected]>
@bazsi bazsi requested a review from bshifter January 24, 2025 11:45
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.

1 participant