On Thu, 2 Aug 2001, Andy Wardley wrote: > On Tue, Jul 31, 2001 at 03:28:11PM -0700, Tony Payne wrote: > > Granted. However, in my case, I've got 50,000 pages with lots of includes > > which have only 6 unique values, so a lot of time is still going to > > reprocessing includes which could have been cached. I've profiled my code > > and gotten everything of mine out of the top 7 functions (6 of those are > > TT methods and the seventh is UNIVERSAL::isa), so now it's time to tune > > the template processing. > > Someone was telling me about this recently (Randal?). Something to do > with the profiler getting confused. The gist of it was that the whole > of your template processing system, including calls to any external code > to fetch data, etc., etc., originates from within an initial TT call. > It makes it look like TT is taking all the time when it's not.
That was me. I was profiling our ADT at extropia and was horrified to see that most of the time is spent in get(). Later I've realized that the Profiler couldn't see beyong the compiled sub. (In our case we have many sub-templates construct a single page). I'll help a lot to identify the real slow places if we could crack on this issue. I'm not sure how, though. > Sketchy details only, I'm afraid. > > A > > > > _______________________________________________ > templates mailing list > [EMAIL PROTECTED] > http://www.template-toolkit.org/mailman/listinfo/templates > _____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
