{ Let me first welcome all of you, this is my first post to this
mailgroup }
Situation: I have mod_perl1/TT application working for my client. The
templates are stable (new version is installed once a month or so) and
most of them are frequently used. So I think it is best for me to
load, compile and cache most of the templates on startup and then do
not touch them until the apache restart.
My aim: to reduce memory requirements as far as possible.
Idea/question 1: is it possible to load all the templates to the
parent apache process so the cache is kept in the shareable memory
reused between processes? It sounds promising but two things are
unclear for me:
- what should I call to preload some template and all its parts (apply
would work but does there exist anything cheaper?)
- what should I overload to disable TemplateToolkit internal
bookkepings (storing last access time, overwritting LRU lists etc
which ruin the memory shareability)
Idea/question 2: is it possible to implement some kind of shared
memory cache instead of in-process cache?
If solution 1 is possible, I would prefer it - as it is safer...
--
( Marcin Kasperski | Software is not released, it is allowed to escape. )
( http://www.mk.w.pl | )
(----------------------------------------------------------------------------)
( Porady dla programisty Oracle: http://www.mk.w.pl/porady/porady_oracle )
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates