Red Hat Bugzilla – Bug 1011670
[PATCH] yum-langpackages slows down yum runs a lot, due to langtable and loading groups.
Last modified: 2013-10-09 10:28:13 EDT
Created attachment 802429 [details]
Load langtable module lazily.
Description of problem:
Noticed that yum runs in F20 were a lot slower than I expected, traced it to langpacks (not sure how recent this is, maybe needs fix in F18/F19/el7 too?).
The first patch is a huge savings:
~1 second off, from 1.8s to 0.8s to do: yum list yum
...which is all "import langtable", so I moved that to happen lazily.
The second patch is that postreposetup_hook() gets called for basically every command, but we only need that data if a transaction happens. So I moved it:
~0.3s off, from 0.8s to 0.5s to do: yum list yum
Created attachment 802430 [details]
Don't download groups for langpack in postrepo. setup.
Just checked and this is a problem in F19, and thus. I assume el7.
Thank you for the patches. I will update the package by later today.
yum-langpacks-0.4.1-2.fc20 has been submitted as an update for Fedora 20.
yum-langpacks-0.4.1-2.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-langpacks-0.4.1-2.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
yum-langpacks-0.4.1-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
yum-langpacks-0.4.1-3.fc20 has been submitted as an update for Fedora 20.
yum-langpacks-0.4.1-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.