| Dalba added a comment. |
In T153501#3319314, @valhallasw wrote:it becomes severely limited because the race condition now has to happen between the two requests on the same line
I don't think so. The problem is not in the number of lines in between, but the time it takes to fetch the API calls. It'll take only a few milliseconds at most to get the results from cache. But the first uncached calls are the real costly ones. They should be orders of magnitude slower. That race condition is most likely to happen during API calls, eliminating the python code in between won't have much effect.
Also, if we are just planning to minimize the the delay between the fetches by eliminating the python code between them, we can simply store the result of the API calls in some variables, and reuse them later... but as I said, I don't think it'll help.
Cc: valhallasw, Dalba, gerritbot, pywikibot-bugs-list, Aklapper, jayvdb, Magul, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
