Board Thread:Watercooler/@comment-5590118-20150701035141/@comment-24473195-20150709171203

Cqm wrote:

My overall point is creating modules to directly replace parser functions is counter-productive and confusing. I don't disagree. In fact, there are only two or 3 modules  here that emulate parserfunctions, both of which are meant as demos. So I'm not exactly sure where you got that impression. Perhaps it was from the "announcements" of global modules, but I did mention libraries there, not a 1:1 correspondence between modules and parserfunctions.

As far as performance goes, I briefly tested it out, a switch parserfunction increments the node count (which makes pages take longer to load ) each time there is a new argument, and so does my lua module. In fact the module probably performs worse  because it takes "modulename" and "function name" as extra arguments, although that can easily be overcome by replacing the "|" with a comma or another delimiter, and using lua's superior string parsing facilities.