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

Fix hashed reference lists being created unnecessarily #509

Closed
wants to merge 1 commit into from

Conversation

embeddedt
Copy link
Contributor

The original logic creates a HashedReferenceList when the list is very small (which is when the optimization would have least impact). This generates a lot of allocations when creating tiny Pools and also seems unintended. Now, the hashed implementation is used for large Pools (where it is likely to improve performance), and the list is used as-is if small enough.

@embeddedt
Copy link
Contributor Author

Already fixed by be8ee4d

@embeddedt embeddedt closed this Apr 9, 2024
@embeddedt embeddedt deleted the patch-1 branch April 9, 2024 01:48
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