66824Re: a faster html::template?
- Sep 4, 2005I notice something an interesting behavior about HTML template.
The delay is usually within loops, especially if you have a big record list
(like 1500). If the text within the loop is huge (ie lots of text), then the
loop can take a really long time. But for very short loops it can be very
Running it by a cache (cache=>1) seems to make the NEXT interation faster
though. But the first one is always slow.
----- Original Message -----
From: "David Hodgkinson" <davehodg@...>
To: "Foo Ji-Haw" <jhfoo@...>
Sent: Monday, September 05, 2005 5:50 AM
Subject: Re: a faster html::template?
> On 2 Sep 2005, at 03:53, Foo Ji-Haw wrote:
> > Hi all,
> > I'm a happy user of HTML::Template on my mp2 setup. But when it
> > comes to performance, I notice that to populate a loop of some 1500
> > records, the system takes 2-3 seconds on my P4 2GHz machine. I
> > think that's way too long, especially on a development machine.
> > I tried to load the template with 'cache=>1', but the performance
> > improvement is not much. I hear some talk on the newsgroup about
> > HTML::Template::JIT. Is there anyone who has optimised on a 1000+
> > record loop in HTML::Template? I am a strong believer in templating
> > engines, and I think reverting to embedded code should be avoided
> > at best.
> 1500 record? don't do it: page or use AJAX.
> Been there. It was horrible.
- << Previous post in topic Next post in topic >>