rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
74 stars 91 forks source link

Reduce time to load metadata #243

Closed papoteur-mga closed 3 years ago

papoteur-mga commented 3 years ago

See https://github.com/rpm-software-management/libdnf/issues/1216 Replace zck_validate_checksums() with zck_validate_data_checksum() to avoid to calculate SHA512 sums in excess of SHA256. An evaluation with callgrind says that lr_yum_perform takes only 22% of time instead of 40% when loading metadata.

kontura commented 3 years ago

That makes sense, thank you for the patch and detailed investigation. :+1: