Wouldn't precompiling topics speed things up?
Being fairly unfamiliar with Perl, my only model is
Smarty
, which is a very cool PHP templating+more system. In Smarty, you put the logic in curly braces, not unlike the way tags are used in TWiki. To speed things up, however, they "compile" the templates by turning the tags into PHP, so that they don't have to be reparsed again. Like TWiki, it's extensible in a number of ways by writing stylized PHP functions and either putting them in the path or registering them.
At a quick glance, the Template Toolkit looks very similar.
I don't know how much parsing pages costs in terms of speed but my guess would be a lot, especially with pages that use . In addition, precompiling the pages would also allow a page to be marked with which tags are used, which would potentially allow only the relevant plugins to be called.
Performance seems to be a big issue, so I thought I'd throw this out there.
--
Contributors: MeredithLesly
Discussion
There is a little ancient discussion in the related topics (I put Compile in the Jump box), but didn't find much. Apologies if I've missed relevant links.
--
MeredithLesly - 16 Mar 2006