Malafaya created this task.
Malafaya added a subscriber: Malafaya.
Malafaya added projects: pywikibot-core, Pywikibot-interwiki.py.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  When running interwiki.py, when changes are needed to a wiki which has a 
non-default interwiki sort order (site.interwiki_putfirst() has value), the 
process hangs for some (around 10) seconds.
  
  After fiddling around, I found the bottleneck to be at textlib.py function 
`**def interwikiSort(sites, insite=None)**`.
  Specifically, there's a loop in which `**insite.validLanguageLinks()**` is 
constantly evaluated (even though it's always the same), and is responsible for 
most of the time the loop takes. The result of this function should be cached 
outside the loop.

TASK DETAIL
  https://phabricator.wikimedia.org/T109077

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Malafaya
Cc: Aklapper, Malafaya, pywikibot-bugs-list, jayvdb, Malyacko



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to