Bugs item #3413798, was opened at 2011-09-25 10:25 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3413798...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody)
Assigned to: xqt (xqt)
Summary: featured.py: Not decrease memory usage.
Initial Comment: http://www.mediawiki.org/wiki/Special:Code/pywikipedia/8574
Contains all data that is processed into a variable. If you destroy the processed data, will decrease memory usage. The name of the variable is "arts". -------- arts = featuredArticles(fromsite, pType) while 0 < len(arts): if query < len(arts): featuredbot(arts[:query], cc, tosite, template_on_top, pType, quiet, dry) arts = arts[query:] else: featuredbot(arts, cc, tosite, template_on_top, pType, quiet, dry) break -------- Otherwise, the generator may be better.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-04-01 04:52
Message: fix done in r10074 using a generator, clone the pages and preloading them
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3413798...