Description
Calls to Wikifunctions.Debug are a bit expensive because they have to communicate over subprocess stdio. If Wikifunctions.Debug is called in a loop, it can kill performance. We should do at least one, but ideally all, of the following:
- stop sending logs after N occurrences (i.e., just make Wikifunctions.Debug a no-op after it's been called N times);
- send a warning in the Z22 sent from the evaluator if Wikifunctions.Debug is called more than N times;
- add an additional warning in the UI about repeated calls to Wikifunctions.Debug (to accompany the existing warning about calling Wikifunctions.Debug at all)
Remove all the non-applicable tags from the "Tags" field, leave only the tags of the projects/repositories related to this task
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist