TWiki.pm is a bit of a monster, 2502 lines of code. Depressingly, it is all compiled when any twiki script is called. Even more depressingly, it doesn't need to be. Much of
TWikiDotPm is a bunch of handlers for different %VARIABLES%. Each of these handlers could be housed in it's own module, meaning it would only need to be compiled if that variable was actually used (c.f. autosplit)
Alternatively use autosplit with this module. This would require a build or install step.
This should be a performance improvement.
--
CrawfordCurrie - 13 Feb 2005
I re-ordered the methods in TWiki.pm and added commented-out lines that
AutoLoader would use. If anyone wants to experiment, go ahead.
--
CrawfordCurrie - 16 Feb 2005
I daresay some of
TWikiDotPmProposedFurtherModularisation is obsolete now, but that also has some ideas.
--
MartinCleaver - 16 Feb 2005