Bugs item #3536901, was opened at 2012-06-21 06:44
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=353690…
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: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: xqt (xqt)
Assigned to: Nobody/Anonymous (nobody)
Summary: Rewrite Performance (multiple API request)
Initial Comment:
There are multiple user info queries which slows down the performance:
c:\Pywikipedia\rw>pwb.py basic.py user:xqt/Test -simulate -v
Pywikipediabot r10326 2012-06-08 12:08:53Z
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
Retrieving 1 pages from wikipedia:de.
Starting 1 threads...
API action query: userinfo
Found 1 wikipedia:de processes running, including this one.
>> Benutzer:Xqt/Test <<<
- Test
+ Test Test
Comment: Bot: Ändere ...
Do you want to accept these changes? ([y]es, [N]o) y
API action query: userinfo
API action query: userinfo
Cosmetic changes for wikipedia-de enabled.
API action query: siteinfo|userinfo
API action query: userinfo
API action edit:
SIMULATION: edit action blocked.
Page [[Benutzer:Xqt/Test]] saved without any changes.
Page [[Benutzer:Xqt/Test]] saved
Dropped throttle(s).
Waiting for threads to finish...
All threads finished.
Dropped throttle(s).
c:\Pywikipedia\rw>
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-09 02:07
Message:
These are muliple API requests and I guess a lot of them could be cached by
a site instance or on disk. This and other code parts decreases the
performance of pwb 2.0 by 30% (or increases the process by 50%) meassured
with touch.py -start:! -pt:0
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=353690…