While refreshing the metadata libdnf first checks if the metalink/repomd.xml is in sync, this does the first metalink/repomd.xml download. If the metadata are out of date the metalink/repomd.xml is downloaded again in librepo during the repodata download (when it downloads primary.xml).
Both metalink and repomd.xml are quite small but if we managed to reuse them it would be a potential optimization.
While refreshing the metadata libdnf first checks if the
metalink
/repomd.xml
is in sync, this does the first metalink/repomd.xml download. If the metadata are out of date themetalink
/repomd.xml
is downloaded again in librepo during the repodata download (when it downloadsprimary.xml
).Both
metalink
andrepomd.xml
are quite small but if we managed to reuse them it would be a potential optimization.