[Rpm-maint] [rpm-software-management/rpm] Replace digest bundle static sized array with STL map (PR #3163)
Panu Matilainen
notifications at github.com
Thu Jun 13 06:57:10 UTC 2024
Removes the arbitrary limit of ids we support. Not that rpm needs more, but arbitrary is arbitrary. Technically it's more efficient because we don't need to brute-force search and there are never inactive digests to skip when updating, but given the small number of elements it's unlikely to make any real-world difference.
Also remove the unused nbytes member, I don't recall why I added it but it hasn't been grown any uses in 10+ years so might as well drop.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/3163
-- Commit Summary --
* Replace digest bundle static sized array with STL map
-- File Changes --
M rpmio/digest.c (73)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/3163.patch
https://github.com/rpm-software-management/rpm/pull/3163.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3163
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3163 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240612/d4fa85d3/attachment-0001.html>
More information about the Rpm-maint
mailing list