Module talk:Delink
Appearance
Optimization of nested links
Hello,
When used many times in a page (several hundred times) this delink operation is quite long (several seconds), especially if text to delink is not short. To avoid the 10s limit for lua operation, I've tried to optimize it for French Wikipedia. My new version seams 4 to 10 times faster depending of string length.
Here are my modifications. I think the main effect comes from the way nested brackets are handled.
Please feel free to evaluate, criticize and/or use it.