Still not feasible solution. Most of the templates contain embeded perl code.
If I would compile them in
every Apache process separatly,
I will get
size_of_compiled_code*number_of_httpd_processes memory consumption.
On a large system (hundreds of httpd processes) even a small size of
templates will require much memory, and I have quite a large templates.
In addition to this, they are user-customizable, so I accept that the size of
whole bunch of templates will be considerable, too much to store in-memory.