On Sat, 2002-06-01 at 16:52, Sam Tregar wrote:
> It's funny you should say that. I consider HTML::Template::JIT to be
> mostly a novelty module. I've never seen a situation where HTML::Template
> was the bottle-neck in a web application and I've programmed many systems
> that use hundreds of parameter values. Are you sure the problem is
> HTML::Template?
HTML::Template does start taking non-trivial amounts of time on rather
large pages, like say a variable width/height table with a pair of
nested TMPL_LOOPs (~10 on the inner (column) loop, ~100+ on the outer
(row) loop). Or a large (~100 elements across multiple sections) form
whose structure is pulled from a database. JIT rips through that stuff
at incredible increases in performance (every second counts with busy
users).
I eagerly anticipate a new version. I currently have it patched with
the _quote_string problem. That patch also seems to have fixed a bug
where it was recompiling a template with a $ in it the first time it is
used after it is compiled in my startup script (this particular template
takes like 2 minutes to build on a P3-866) (even with no_compile... it
seemed to be occuring during the require). But I have some other quirks:
* In mod_perl, ->clear_params() is needed with JIT after a new to avoid
garbage from previous runs (H::T has never had this)
* Initially I took some grief because I didn't realize that global_vars
only takes affect when compiling a template, not afterwards. (I
initially didn't specify global_vars in the new since I got into the
habit of making it the default system wide with H::T) Make note of that
in the docs :)
Happy HTML::Template user since 1999 :)
Tugrul Galatali
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]