| Summary: | [PATCH] yum-langpackages slows down yum runs a lot, due to langtable and loading groups. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | James Antill <james.antill> | ||||||
| Component: | yum-langpacks | Assignee: | Parag Nemade <pnemade> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 19 | CC: | i18n-bugs, james.antill, notting, petersen, pnemade | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | yum-langpacks-0.4.1-3.fc20 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 1011674 (view as bug list) | Environment: | |||||||
| Last Closed: | 2013-09-28 00:21:25 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1011674 | ||||||||
| Attachments: |
|
||||||||
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. https://admin.fedoraproject.org/updates/yum-langpacks-0.4.1-2.fc20 yum-langpacks-0.4.1-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/yum-langpacks-0.4.1-2.fc19 Package yum-langpacks-0.4.1-2.fc19: * 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: https://admin.fedoraproject.org/updates/FEDORA-2013-17633/yum-langpacks-0.4.1-2.fc19 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. https://admin.fedoraproject.org/updates/yum-langpacks-0.4.1-3.fc20 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. |
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