Steps to reproduce:
Expected outcome: no error
Observed outcome: "Galat Lua: not enough memory."
"mw.title.newBatch(...)" is supposed to increment the expensive function counter by ONE for every 25 titles queried. Tests can confirm that it works like that. Given that one should be able to afford 500 * 25 =12'500 ifexist requests. However, the test starts failing with "Galat Lua: not enough memory." instead of the feared "Galat Lua: too many expensive function calls." already at ca 7'000 titles, far below 12'500.
Module: https://id.wikipedia.org/wiki/Modul:T410527
Proposed ideas for solution:
- reduce the memory-hogginess of "mw.title.newBatch(...)" with full current functionality
- add a parameter "ifexist-only" to reduce the functionality and memory hogginess