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

Convert the last rpmhash user to STL and remove rpmhash #3184

Merged
merged 5 commits into from
Jun 26, 2024

Conversation

pmatilai
Copy link
Member

No description provided.

This is unlike all the other typedefs in rpm and only makes things
harder to follow. Luckily this is an internal-only thing.
fpCacheGetByFp() has been returning the array from rpmhash GetEntry()
as-is, which is a format that STL does not provide. Copy the data into a
vector instead to put a little padding between the user and the
container. This is slower of course but can't be helped, we can optimize
the mess once all the old implementation has been untangled.
@pmatilai pmatilai changed the title Convert the last rpmhash user to STL and remove rpmash Convert the last rpmhash user to STL and remove rpmhash Jun 26, 2024
@pmatilai
Copy link
Member Author

Hashes to ashes 🪦

This is a bit trickier than the average hash because it uses pointers
to structs as keys, but we need to hash and compare the actual structs
and not the pointers.

This is was also the last user of rpmhash in the codebase.
It may have been clunky to declare and non-obvious for new-comers but it
served us well for many years. Farewell, and thanks for all the fish.
@ffesti ffesti merged commit 775acf1 into rpm-software-management:master Jun 26, 2024
1 check passed
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.

None yet

2 participants