[Yum-devel] [PATCH] Drop YumBase.up after depsvoling, saves ~3% of memory on x86_64
James Antill
james at fedoraproject.org
Tue Aug 10 16:09:35 UTC 2010
On Tue, 2010-08-10 at 11:37 -0400, seth vidal wrote:
> On Tue, 2010-08-10 at 11:36 -0400, James Antill wrote:
> > ---
> > yum/__init__.py | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/yum/__init__.py b/yum/__init__.py
> > index 0304fea..1b417c4 100644
> > --- a/yum/__init__.py
> > +++ b/yum/__init__.py
> > @@ -938,6 +938,8 @@ class YumBase(depsolve.Depsolve):
> >
> > if self.tsInfo.pkgSack is not None: # rm Transactions don't have pkgSack
> > self.tsInfo.pkgSack.dropCachedData()
> > + # We don't need this after depsolving...
> > + del self.up
> >
> > # This is a version of the old "protect-packages" plugin, it allows
> > # you to erase duplicates and do remove+install.
>
> What about the yum shell case?
You mean running multiple transactions?
It would reload it ... but I think that's a bugfix (unless there's
something else removing it that I can't see).
More information about the Yum-devel
mailing list