[Yum-devel] [PATCH] Drop YumBase.up after depsvoling, saves ~3% of memory on x86_64

seth vidal skvidal at fedoraproject.org
Tue Aug 10 15:37:45 UTC 2010


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?

-sv




More information about the Yum-devel mailing list