https://bugzilla.redhat.com/show_bug.cgi?id=1011670
Bug ID: 1011670
Summary: [PATCH] yum-langpackages slows down yum runs a lot,
due to langtable and loading groups.
Product: Fedora
Version: 20
Component: yum-langpacks
Assignee: pnemade(a)redhat.com
Reporter: james.antill(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: i18n-bugs(a)lists.fedoraproject.org,
james.antill(a)redhat.com, notting(a)redhat.com,
petersen(a)redhat.com, pnemade(a)redhat.com
Created attachment 802429
-->
https://bugzilla.redhat.com/attachment.cgi?id=802429&action=edit
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
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=IttRkVEPUx&a=cc_unsubscribe