Right now we're creating a new Bugzilla->template on each request.
Instead, it might be better to just keep re-using the Template object over and over as long as we're in the same process. This would also let us take advantage of the Template-Toolkit cache, where it's already loaded the template code into memory and doesn't even have to read the disk for the data.
mkanat what is involved with this request?
(In reply to comment #1)
> mkanat what is involved with this request?
Discovering a working way to cache items per-process under mod_perl.
Oh, and then making sure that Template-Toolkit doesn't leak like crazy across requests.
glob: didn't you fix that in bug 778631?
(In reply to Frédéric Buclin from comment #4)
> glob: didn't you fix that in bug 778631?
bug 778631 implements a single Template::Provider object per process, which is different from a Bugzilla::Template object per process. there may be additional gains by caching the main template object, as this is the recommended mod_perl deployment strategy for template-toolkit.
*** Bug 979413 has been marked as a duplicate of this bug. ***