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 a horrible performance regression caused by missing & #3422

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

pmatilai
Copy link
Member

@pmatilai pmatilai commented Nov 1, 2024

One of the busiest functions in rpm was getting passed a new copy of a big unordered_map on each call during fingerprinting because "somebody" forgot a & in commit 08a6a5e. This isn't even noticeable in the test-suite or daily "update a few dozen packages" operation but when attempting to install/update a few thousand packages dragged this little buglet to the light...

Why oh why C++ do you behave in such an idiotic manner in the face of stupid mistakes. Raw pointers at least give you a compiler error.

One of the busiest functions in rpm was getting passed a new copy of a
big unordered_map on each call during fingerprinting because "somebody"
forgot a & in commit 08a6a5e.
This isn't even noticeable in the test-suite or daily "update a few
dozen packages" operation but when attempting to install/update a few
thousand packages dragged this little buglet to the light...

Why oh why C++ do you behave in such an idiotic manner in the face of
stupid mistakes. Raw pointers at least give you a compiler error.
@pmatilai pmatilai requested a review from a team as a code owner November 1, 2024 10:50
@pmatilai pmatilai requested review from dmnks and removed request for a team November 1, 2024 10:50
@dmnks
Copy link
Contributor

dmnks commented Nov 1, 2024

And the prize for the most impactful one-liner of the month goes to...

@dmnks dmnks merged commit 40c53b6 into rpm-software-management:master Nov 1, 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.

2 participants