Table of votes -- module error

Table of votes -- module error

Wiktionary:Table of votes is once again unable to generate the table and displays a module error instead: "The time allocated for running scripts has expired." I did some tests (I added and removed vote pages to see if the table would show up) and discovered that this problem is happening speficifically because of the "Dan Polansky for admin". It is the 5th vote and it has 25 people voting. Apparently, the quantity of people causes the module to crash.

I have an idea that maybe would solve the problem: I could create a data module like Module:vote table/people with the complete list of user names to be shown in the table. Pro: I could remove all the code from Module:vote table that is supposed to generate the user list by looking at each vote page. I wonder if this is an expensive task. Con: The data module would require constant updating, by design, when a new voter appears or an old voter stops voting. I believe modules are supposed to be "left alone" and not require constant updating. But I don't know what else to do. What do you think?

--Daniel Carrero (talk)08:10, 8 September 2016

I don't think requiring additional maintenance is going to work. Make it automatic as much as possible.

CodeCat10:50, 8 September 2016

I completely agree, you should try to make it as automatic as possible. Possibly you can optimize the code to make it faster; there's some way to get a list of functions and how much time was called in each, although I forget how.

Benwing2 (talk)17:19, 11 September 2016

@Wikitiki89 fixed the code of the table; it's working perfectly now.

--Daniel Carrero (talk)17:40, 11 September 2016