Re: [Phplib-users] [Fwd: [phplib] general template question]
Brought to you by:
nhruby,
richardarcher
From: Philip S. <ph...@st...> - 2001-08-14 07:26:32
|
> I think you'll find the overhead from templates is a lot lower than the > overhead from other aspects of your dynamic pages. For example, a call > to preg_replace is much cheaper than the cost of bringing up a database > connection. True. In my situation the db connection would already be there, so I guess the whole template processing would be negligible. So how do you do it? Are your templates parsed dynamically? > If you do run some performance figures, be sure to post them back to > the list... that always generates a lot of interest. I will see what I can come up with. I doubt I'll be getting to this anytime soon, but you never know what's going to happen since requirements change. Btw, maybe one way to speed things up would be to read the templates into memory at server startup, but I'm not sure if this is possible in PHP? I know it can be done with mod_perl, but that's totally different. Philip |