Yes I have measured.

I have put in my program:

my $begin = (times)[0];

...code

my $step1 = (times)[0] - $begin;

...another piece of code

my $step2 = (times)[0] - $begin;

...and so on.

So I have seen how much time takes each piece of code.

After the last step in which tt parses the templates and prints the results,
the time doubles in a single step, so it takes pretty much there.

I also need to make other adjustments in the code to make it faster, but the
most time is taken by tt.

(And I have used PROCESS and not INCLUDE in all the templates, so they
should be working as fast as possible).
(And all the loops in the templates are made based on an already sorted
array, so the templates don't need to make very complicated things).

Thank you.

Teddy


----- Original Message ----- 
From: "Chris Devers" <[EMAIL PROTECTED]>
To: "Octavian Rasnita" <[EMAIL PROTECTED]>
Cc: "Perl Beginners List" <beginners@perl.org>
Sent: Thursday, August 25, 2005 15:06 PM
Subject: Re: faster templates


> On Thu, 25 Aug 2005, Octavian Rasnita wrote:
>
> > I am trying to speed up a site that uses mod_perl because it works
> > slowly. I have done many changes in MySQL queries and they are working
> > now much faster, but the site is still slow and I think this is
> > because I use Template-Toolkit.
>
> Do you have benchmarks demonstrating this?
>
> Or is this just a hunch?
>
> Never guess; always measure.
>
>
>
> -- 
> Chris Devers


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to