Xqt added a comment.

  I made a worst case check with 5376 pages from pagegenerators and 94 pages 
for the `-from` category:
  
  | **Implementation**                                 | **time used** |
  | current implementation                             | 12-13 s       |
  | same as above but duplicate are allowed            | 11-12 s       |
  | textlib.getCategoryLinks to check category members | 76-97 s       |
  | same above but `preload=True` for pagegenerators   | 68-74 s       |
  |
  
  Conclusion: the current implementation is about eight times faster than using 
textlib and I haven't found any faster (and I haven't expanded templates)

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

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

To: Xqt
Cc: Xqt, Aklapper, pywikibot-bugs-list, Vladis13, Jersione, Hellket777, 
LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, 
SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, 
Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, 
Cpaulf30, Af420, Bsandipan, Chicocvenancio, Tbscho, MayS, Lewizho99, Mdupont, 
JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, 
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to