https://bugzilla.wikimedia.org/show_bug.cgi?id=55013
Web browser: --- Bug ID: 55013 Summary: Optimize multiple replace.py instances Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/333/ Reported by: Anonymous user Created on: 2013-03-12 21:11:04 Subject: Optimize multiple replace.py instances Original description: Since the biggest part of the time and I/O resources, in a replace.py based on a xml file, is reading and uncompressing the xml file itself. When this action is done, execute 10 or 50 regex is very similar. I think that the replace.py should be able to apply more -fix in the same time. Also, if the -save parameter is active, each -fix should go in a different file.
I think that passing an array to -fix and -save to be able to do this. This implementation is only an idea, obviusly ;)
python version.py Pywikipedia trunk/pywikipedia/ (r11200, 2013/03/09, 11:43:52, OUTDATED) Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] config-settings: use_api = True use_api_login = True unicode test: ok
https://bugzilla.wikimedia.org/show_bug.cgi?id=55013
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- The idea is good, but much more command-line parameters are involved, practically each except -xml and -xmlstart. Do you have any measurements on time consumption?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55013
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/feature-reque | |sts/333
https://bugzilla.wikimedia.org/show_bug.cgi?id=55013
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Component|General |Other scripts
https://bugzilla.wikimedia.org/show_bug.cgi?id=55013
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |performance CC| |jayvdb@gmail.com Version|unspecified |core (2.0)
pywikipedia-bugs@lists.wikimedia.org