Re: [htmltmpl] Dynamic Filters for cached templates forced recall ?
Brought to you by:
samtregar
From: Chris N. <chr...@in...> - 2002-07-11 18:18:48
|
Oops. I've since been running an Apache/mod_perl combo with HTML::Template::JIT memory resident and have shifted the data population of the template to the mod_perl script using it a request processor as I should have realised originally. I'm now thinking of the template engine a bit like an SQL skeleton prepare statement. I was putting the data where the ? should have been. Here's some interesting benchmarks for a simplistic template but shows the sheer power of the mod_perl/Apache combo: Benchmark: timing 1000 iterations of cgi-cache, cgi-jit, cgi-nojit, modperl-cache, modperl-jit, modperl-nojit... cgi-cache: 257 wallclock secs ( 1.46 usr + 0.68 sys = 2.14 CPU) @ 467.29/s (n=1000) cgi-jit: 256 wallclock secs ( 1.27 usr + 0.54 sys = 1.81 CPU) @ 552.49/s (n=1000) cgi-nojit: 219 wallclock secs ( 1.15 usr + 0.52 sys = 1.67 CPU) @ 598.80/s (n=1000) modperl-cache: 6 wallclock secs ( 1.39 usr + 0.47 sys = 1.86 CPU) @ 537.63/s (n=1000) modperl-jit: 5 wallclock secs ( 1.41 usr + 0.47 sys = 1.88 CPU) @ 531.91/s (n=1000) modperl-nojit: 6 wallclock secs ( 1.45 usr + 0.51 sys = 1.96 CPU) @ 510.20/s (n=1000) marvellous. On Thursday 11 July 2002 12:50, Chris Newman wrote: > Hi, > I want to be able to run HTML::Template::JIT or standard cached > HTML::Template with a dynamic filter. I have run a filter which contains a > call to a subroutine which does a remote data retrieval socket GET but it > appears that HTML::Template is not dynamically re-calling this routine. I > have looked at the Inline C for the JIT template and the remote data is > just embedded as a normal string. Is there anyway to make this subroutine > call be forced to be called every time (without switching off caching or > sacrificing the JIT stuff) ? > I have looked at alternatives such as building something into Apache to > scan the delivered pages and re-parse a tag which I'd flag as dynamic but > ideally want to be able to use the HTML::Template constructs on the dynamic > data. Apologies if I'm missing something obvious. > > Chris > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > PC Mods, Computing goodies, cases & more > http://thinkgeek.com/sf > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users |