]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Save memory in repo_updateinfoxml by not interleaving repo_addflexarray calls
authorMichael Schroeder <mls@suse.de>
Thu, 20 Jul 2023 09:50:00 +0000 (11:50 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 20 Jul 2023 09:50:00 +0000 (11:50 +0200)
commit296f854b7a9d4b83f6ecb1fc0626511132bf53cf
tree26a6d705d77e638ed54d85e5e7e3940f80992ccd
parent2fc0cb31a2010d70f3f9197189730400edbd6ef4
Save memory in repo_updateinfoxml by not interleaving repo_addflexarray calls

Mixing repo_addflexarray calls will make the code moving the arrays
in the idarraydata all the time as it cannot append to the arrays.
So first collect the array contents of the collection flexarray and
then add it in one go.

This is based on pull request #533 by Aleš Matěj <amatej@redhat.com>.
ext/repo_updateinfoxml.c