Loading ...
Sorry, an error occurred while loading the content.

66824Re: a faster html::template?

Expand Messages
  • Foo Ji-Haw
    Sep 4, 2005
      I 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
      fast.

      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@...>
      Cc: <modperl@...>
      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.
      >
    • Show all 31 messages in this topic