This is quite technical but I think it worth mentioning. I tried a new version of Template:Coord based on Lua [1]. A heavy list with 230 monuments and coodinates now is served in 19 seconds instead for 25 sec. according with commented information included by MediaWiki in source pages. This time depends on many factors, but it is significant as I checked it on different pages just before and after updating the row template, and reduction time is quite constant. A list of 100 monuments is served in 4 seconds instead of 8 sec. Futhermore, it has reduced the number of expansion templates and the template inclusion limit now is higher allowing around 350 monuments.
[1] https://en.wikipedia.org/wiki/Module:Coordinates
Vicenç
OMG! Thanks for posting, that's great news. So where do I go to learn Lua?
2013/4/11, Vicenç Riullop vriullop@hotmail.com:
This is quite technical but I think it worth mentioning. I tried a new version of Template:Coord based on Lua [1]. A heavy list with 230 monuments and coodinates now is served in 19 seconds instead for 25 sec. according with commented information included by MediaWiki in source pages. This time depends on many factors, but it is significant as I checked it on different pages just before and after updating the row template, and reduction time is quite constant. A list of 100 monuments is served in 4 seconds instead of 8 sec. Futhermore, it has reduced the number of expansion templates and the template inclusion limit now is higher allowing around 350 monuments.
[1] https://en.wikipedia.org/wiki/Module:Coordinates
Vicenç
Jane Darnell, 13/04/2013 10:27:
OMG! Thanks for posting, that's great news. So where do I go to learn Lua?
https://www.mediawiki.org/wiki/Lua and in particular https://www.mediawiki.org/wiki/Lua/Tutorial
Nemo
Op 13-4-2013 10:44, Federico Leva (Nemo) schreef:
Jane Darnell, 13/04/2013 10:27:
OMG! Thanks for posting, that's great news. So where do I go to learn Lua?
https://www.mediawiki.org/wiki/Lua and in particular https://www.mediawiki.org/wiki/Lua/Tutorial
At the moment some Wikipedias have realy big complicated nested templates to get things like coordinates done. I expect that we can be much more efficient when we replace these templates with lua.
Maarten
wikilovesmonuments@lists.wikimedia.org