Possibly not the best place for them. So I've copied the code for most of them into a new file, TWikiVars
.pm. To compare performance, search for
and change it to 1 to use TWikiVars
.pm for the definitions, to 0 to use the definitions in TWiki.pm. Note that the code has not
been removed from TWiki.pm, so when using TWikiVars
.pm the code is compiled twice. Assuming that compiling the code has a non-negligible cost, slightly higher times using TWikiVars
.pm would seem to indicate no actual performance loss in having them in a separate file.