[Rpm-maint] [rpm-software-management/rpm] Fix a horrible performance regression caused by missing & (PR #3422)
Panu Matilainen
notifications at github.com
Fri Nov 1 10:51:03 UTC 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 08a6a5e848f007c2e8d83fc1df8712d1a43229f4. 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.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/3422
-- Commit Summary --
* Fix a horrible performance regression caused by missing &
-- File Changes --
M lib/fprint.cc (2)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/3422.patch
https://github.com/rpm-software-management/rpm/pull/3422.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3422
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3422 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241101/e730d34c/attachment.html>
More information about the Rpm-maint
mailing list