Issue #1443 has been updated by luke.

Status changed from Unreviewed to Accepted
Assigned to set to dfuhriman
Target version changed from 0.24.5 to 0.25.0

This isn't going to make it into 0.24.5; we're too late in the game for that.

As discussed on the list, I like the idea of doing this, but the specific patch 
isn't quite sufficient.
----------------------------------------
Bug #1443: Enable lazy loading of latest packages for yum
http://reductivelabs.com/redmine/issues/show/1443

Author: immerda
Status: Accepted
Priority: Normal
Assigned to: dfuhriman
Category: package
Target version: 0.25.0
Keywords: 
Complexity: Unknown
Patch: None
Affected version: 0.24.4


I could observe that yumhelper.py can run quite some time and use quite a lot 
of memory (up to 100MB!) if you're using many repositories. 
As the yumhelper is only needed if you use latest as a ensure-keyword it makes 
no sense for people like me letting puppet fetch these details always, if 
you're never going to use latest. 

Therefor this patch changes the behaviour, that the yumhelper is only called, 
if @updates is accessed the first time.
=> lazy loading.

some observations I could do showed some significant perfomance boost:

without lazy loading:
<pre>
notice: Finished catalog run in 61.45 seconds
</pre>
with lazy loading and not using any latest definition:
<pre>
notice: Finished catalog run in 34.99 seconds
</pre>

Pushed in commit: 
"c24237":http://github.com/duritong/puppet/commit/c24237daf14d22c858ff07fe88384333e0558bb6
Branch published @ 
"github":http://github.com/duritong/puppet/tree/yumhelper_lazyloading

However maybe the yumhelper itself should be examined on the memory usage. But 
I think most of the stuff is coming from yum itself.


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to