Build Update for wikimedia/pywikibot-core
-------------------------------------

Build: #2813
Status: Broken

Duration: 33 minutes and 43 seconds
Commit: 330ebe5 (master)
Author: Malafaya
Message: interwiki.py: check for category before emptiness

Currently, page.isEmpty() requires parsing the whole page and doing some
removals (langlinks and categories) which takes up significant CPU time.
There are 2 checks which use page.isEmpty() as the starting condition
while having a much simpler second condition of just checking the page
namespace.
In this patch, I reversed the checks order. For categories, the time
taken in batchLoaded() is reduced to about 30% of the original time.

Change-Id: I00375411ca15658c22ae6bdb49588ec9f03b8c69

View the changeset: 
https://github.com/wikimedia/pywikibot-core/compare/67b2cca00956...330ebe54492c

View the full build log and details: 
https://travis-ci.org/wikimedia/pywikibot-core/builds/79710978

--

You can configure recipients for build notifications in your .travis.yml file. 
See http://docs.travis-ci.com/user/notifications


_______________________________________________
Pywikibot-commits mailing list
Pywikibot-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to