OTRS/otrs — pull request #134 by moritz (2013-10-14 13:10:37+00:00)
Title: Speed up Kernel::System::TemplateGenerator

When replying to an email of size 3.2MB, AgentTicketCompose
spent nearly 44s in Kernel::System::TemplateGenerator->_Replace.
This patch reduces the time to about 11s on my dev system.

As an added bonus, it reduces the code size and removes
code duplication.