I'm trying to port a template from wikitext to lua. The template [1]
is quite simple, but it gets repeated hundreds of times in some pages.
Getting the logic to work was not complicated (the modified version is
at [2]), but I'm seeing huge performance variation in the lua version:
parsing [3] takes anywhere from 15 to 20s, while the wikitext version
is stable between 18.5 and 19s (I'm testing using the "preview in
page" option).

Is this something to be expected from the lua interpreter? How can I
minimize the problem?

Thanks,
   Strainu

[1] https://ro.wikipedia.org/wiki/Format:ElementLMI
[2] https://ro.wikipedia.org/wiki/Utilizator:Strainu/testlmi
[3] 
https://ro.wikipedia.org/wiki/Lista_monumentelor_istorice_din_Bucure%C8%99ti,_sector_1

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to