jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1030276?usp=email )

Change subject: [IMPR] preload pages in commons_information.py
......................................................................

[IMPR] preload pages in commons_information.py

The script is up tp 10 times faster.

Change-Id: I7ab108188660889cb27900443c0b2dba3ce5c9cf
---
M scripts/commons_information.py
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/scripts/commons_information.py b/scripts/commons_information.py
index 138f842..2cf69eb 100755
--- a/scripts/commons_information.py
+++ b/scripts/commons_information.py
@@ -17,6 +17,9 @@

     python pwb.py commons_information -start:File:!

+.. versionadded:: 6.0
+.. versionchanged:: 9.2
+   accelerated script with preloading pages.
 """
 #
 # (C) Pywikibot team, 2015-2024
@@ -181,7 +184,7 @@
     for arg in local_args:
         gen_factory.handle_arg(arg)

-    gen = gen_factory.getCombinedGenerator()
+    gen = gen_factory.getCombinedGenerator(preload=True)
     if gen:
         bot = InformationBot(generator=gen)
         bot.run()

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1030276?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I7ab108188660889cb27900443c0b2dba3ce5c9cf
Gerrit-Change-Number: 1030276
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to