Because of an incomplete refactoring, all calls to plugin handlers indirect via the plugins object. This makes sense in a statically comiled language, but in an interpreted language like perl it is dumb. For example,
$twiki->{plugins}->commonTagsHandler(...)
is implemented as
sub commonTagsHandler {
my $this = shift ;
$this->_dispatch('commonTagsHandler', @_);
}
All the handlers are implemented the same way. This slows down the code in two ways; because of the indirection, but also because of all the extra code that has to be compiled. It also makes adding a new handler a painful process.
Get rid of the indirection and call the dispatcher direct. It also makes the code clearer.
--
TWiki:Main/CrawfordCurrie
- 10 Dec 2007
Done in MAIN; mark as "waiting for release" when 4.2.0 is gone.
CC
Cleaned "WaitingFor" field.
--
TWiki:Main.GilmarSantosJr
- 10 Aug 2008