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

hash, use single linked list for entries #16351

Closed
wants to merge 2 commits into from
Closed

Conversation

icing
Copy link
Contributor

@icing icing commented Feb 16, 2025

Curl's double linked list is proven code, but it comes with some additional memory overhead. Since hash's internal list of elements needs only forward traversals, it seems worthwhile to use a single linked list internally.

This saves 3 pointers per entry plus 3 pointers per slot.

Curl's double linked list is proven code, but it comes with
some additional memory overhead. Since hash's internal list
of elements needs only forward traversals, it seems worthwhile
to use a single linked list internally.

This saves 3 pointers per entry plus 3 pointers per slot.
…s implementation did.

This seems to happen in the multi event handling and maybe worth revisiting
once that refactor has been merged. It seems wrong to destroy a hash twice.
@bagder bagder closed this in 069f9d0 Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants