[Yum-devel] [PATCH] Tell rpm to release memory it wont need for the transaction
Panu Matilainen
pmatilai at laiskiainen.org
Thu Feb 10 09:57:38 UTC 2011
Calling ts.clean() releases memory used by dependency checks and
ordering. Depending on the transaction size, this can be tens of megs.
And yes its dumb that callers need to bother with such issues...
---
cli.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cli.py b/cli.py
index 7237f6c..5db39b7 100644
--- a/cli.py
+++ b/cli.py
@@ -566,6 +566,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
self.populateTs(keepold=0) # populate the ts
self.ts.check() #required for ordering
self.ts.order() # order
+ self.ts.clean() # release memory not needed beyond this point
# put back our depcheck callback
self.dsCallback = dscb
--
1.7.4
More information about the Yum-devel
mailing list