Skip to content

storage: optimize PartsHelper by using vector instead of set for rare… #1531

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 1 commit into
base: master
Choose a base branch
from

Conversation

VolodymyrBg
Copy link

…st_parts

Replace std::set with std::vector for storing rarest_parts in PartsHelper.
This change follows the TODO comment and improves performance since
vectors generally provide better cache locality and lower memory overhead
compared to sets for this use case.

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