RE: [Templates] TT in callback

[prev] [thread] [next] [Date index for 2005/01/07]

From: Simon Matthews
Subject: RE: [Templates] TT in callback
Date: 16:53 on 07 Jan 2005
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C4F4D9.6DB3646F
Content-Type: text/plain

> -----Original Message-----
> I'm not sure I'm following, but the difference between 
> INCLUDE and PROCESS is that INCLUDE prevents the specific 
> side-effect of changing data in the stash and is therefore 
> slower.  If you don't need to prevent that side-effect, then 
> INCLUDE is the wrong thing to use.

I don't always know the complete contents of the stash and what it is being
used for and therefore when I need to use INCLUDE.  As the safe option is to
use INCLUDE I use it.  I only use PROCESS where I want my templates to stomp
over the content of the stash (but then I do know the difference)

In our environment we have a number of people all working on templates
independently.

I cannot keep track of all the variables in use and therefore when I am
likely to cause unexpected behaviour just because I happened to pick the
same variable name as someone else.  In my world INCLUDE works perfectly.  I
understand the issue of the performance hit in localising the stash.  I
would be happy if there was a way to turn off the behaviour of stash
localisation so that we can meet your performance requirements.  I presume
in TT3 the way to implement this is with a grammar change that makes INCLUDE
do the same as PROCESS and PERRIN_INCLUDE do the same as INCLUDE.

I still think that changing the default behaviour will cause untold mayhem
for the vast number of people who have been using INCLUDE in the past.  Most
of what we have here, many thousands of templates, would all have to be
checked if this behaviour changes.

All of that said, I understand the difference and will simply switch the
behaviour in the opposite way to that described above if the default
changes.  I just think that unless there is a very good reason things should
work in TT3 as they do in TT2 for most people.

We are after all talking about performance tuning here which will probably
only be an issue to people running really, really big sites.

My 1p.

S


------_=_NextPart_001_01C4F4D9.6DB3646F
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Templates] TT in callback</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; I'm not sure I'm following, but the difference =
between </FONT>
<BR><FONT SIZE=3D2>&gt; INCLUDE and PROCESS is that INCLUDE prevents =
the specific </FONT>
<BR><FONT SIZE=3D2>&gt; side-effect of changing data in the stash and =
is therefore </FONT>
<BR><FONT SIZE=3D2>&gt; slower.&nbsp; If you don't need to prevent that =
side-effect, then </FONT>
<BR><FONT SIZE=3D2>&gt; INCLUDE is the wrong thing to use.</FONT>
</P>

<P><FONT SIZE=3D2>I don't always know the complete contents of the =
stash and what it is being used for and therefore when I need to use =
INCLUDE.&nbsp; As the safe option is to use INCLUDE I use it.&nbsp; I =
only use PROCESS where I want my templates to stomp over the content of =
the stash (but then I do know the difference)</FONT></P>

<P><FONT SIZE=3D2>In our environment we have a number of people all =
working on templates independently.</FONT>
</P>

<P><FONT SIZE=3D2>I cannot keep track of all the variables in use and =
therefore when I am likely to cause unexpected behaviour just because I =
happened to pick the same variable name as someone else.&nbsp; In my =
world INCLUDE works perfectly.&nbsp; I understand the issue of the =
performance hit in localising the stash.&nbsp; I would be happy if =
there was a way to turn off the behaviour of stash localisation so that =
we can meet your performance requirements.&nbsp; I presume in TT3 the =
way to implement this is with a grammar change that makes INCLUDE do =
the same as PROCESS and PERRIN_INCLUDE do the same as =
INCLUDE.</FONT></P>

<P><FONT SIZE=3D2>I still think that changing the default behaviour =
will cause untold mayhem for the vast number of people who have been =
using INCLUDE in the past.&nbsp; Most of what we have here, many =
thousands of templates, would all have to be checked if this behaviour =
changes.</FONT></P>

<P><FONT SIZE=3D2>All of that said, I understand the difference and =
will simply switch the behaviour in the opposite way to that described =
above if the default changes.&nbsp; I just think that unless there is a =
very good reason things should work in TT3 as they do in TT2 for most =
people.</FONT></P>

<P><FONT SIZE=3D2>We are after all talking about performance tuning =
here which will probably only be an issue to people running really, =
really big sites.</FONT></P>

<P><FONT SIZE=3D2>My 1p.</FONT>
</P>

<P><FONT SIZE=3D2>S</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C4F4D9.6DB3646F--

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

(message missing)

[Templates] TT in callback
Arshavir Grigorian 19:13 on 03 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 21:14 on 03 Jan 2005

Re: [Templates] TT in callback
Arshavir Grigorian 21:55 on 03 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 22:02 on 03 Jan 2005

Re: [Templates] TT in callback
Arshavir Grigorian 22:39 on 03 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 23:21 on 03 Jan 2005

Re: [Templates] TT in callback
Michael Peters 14:21 on 04 Jan 2005

Re: [Templates] TT in callback
Sean T Allen 14:46 on 04 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 15:48 on 04 Jan 2005

Re: [Templates] TT in callback
Andy Wardley 11:26 on 05 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 15:18 on 05 Jan 2005

Re: [Templates] TT in callback
Andy Wardley 11:08 on 06 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 19:34 on 06 Jan 2005

Re: [Templates] TT in callback
Harry Jackson 10:39 on 07 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 14:02 on 07 Jan 2005

Re: [Templates] TT in callback
Bill Moseley 16:11 on 07 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 16:23 on 07 Jan 2005

Re: [Templates] TT in callback
Bill Moseley 19:22 on 08 Jan 2005

Re: [Templates] TT in callback
C. Chad Wallace 18:05 on 07 Jan 2005

Re: [Templates] TT in callback
Tony Bowden 00:14 on 04 Jan 2005

Re: [Templates] TT in callback
Cees Hek 02:38 on 04 Jan 2005

Re: [Templates] TT in callback
merlyn (Randal L. Schwartz) 02:48 on 04 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 19:55 on 04 Jan 2005

Re: [Templates] TT in callback
Cees Hek 22:18 on 04 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 23:54 on 04 Jan 2005

Re: [Templates] TT in callback
Cees Hek 02:39 on 05 Jan 2005

Re: [Templates] TT in callback
Andy Wardley 10:59 on 05 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 19:40 on 04 Jan 2005

Re: [Templates] TT in callback
Arshavir Grigorian 22:16 on 07 Jan 2005

RE: [Templates] TT in callback
Jason Gottshall 22:29 on 05 Jan 2005

Re: [Templates] TT in callback
Mark Mills 22:46 on 05 Jan 2005

RE: [Templates] TT in callback
Simon Matthews 15:58 on 06 Jan 2005

RE: [Templates] TT in callback
Larry Leszczynski 19:44 on 06 Jan 2005

RE: [Templates] TT in callback
Simon Matthews 16:53 on 07 Jan 2005

RE: [Templates] TT in callback
Perrin Harkins 17:05 on 07 Jan 2005

Re: [Templates] TT in callback
Buddy Burden 23:52 on 07 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 05:18 on 05 Jan 2005

Re: [Templates] TT in callback
Cees Hek 05:48 on 05 Jan 2005

TT Caching (Was: Re: [Templates] TT in callback)
Larry Leszczynski 17:18 on 05 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
Perrin Harkins 18:07 on 05 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
Perrin Harkins 18:28 on 05 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
Larry Leszczynski 18:18 on 05 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
Perrin Harkins 19:15 on 05 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
Octavian Rasnita 19:00 on 05 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
merlyn (Randal L. Schwartz) 19:14 on 05 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
Octavian Rasnita 07:29 on 06 Jan 2005

Re: [Templates] TT in callback
Tony Bowden 15:05 on 06 Jan 2005

Re: [Templates] TT in callback
Andy Wardley 15:50 on 06 Jan 2005

Re: [Templates] TT in callback
Tony Bowden 09:09 on 07 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
Perrin Harkins 19:14 on 06 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
Octavian Rasnita 20:32 on 06 Jan 2005

Re: TT Caching (Was: Re: [Templates] TT in callback)
Perrin Harkins 21:14 on 06 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 19:44 on 08 Jan 2005

Re: [Templates] TT in callback
Bill Moseley 20:09 on 08 Jan 2005

Re: [Templates] TT in callback
Perrin Harkins 04:42 on 10 Jan 2005

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52