[thelist] Looking for a simple CF-based catalog/shopping cart

.jeff jeff at members.evolt.org
Mon Dec 10 15:47:15 CST 2001


aaron,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Aaron Johnson
>
> > you also wanna be careful about choosing setups that
> > are custom tag based, as they will be slower than one
> > that's not custom tag based.
>
> == so I've heard this a bunch of times from different
> people... ie: "custom tags are slower..."
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

yeah, they've gotten a rap for that and from my experience appropriately so.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Do you have quantitative evidence of custom tags being
> slower?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

i've read several reports based on research done by others.  unfortunately i
don't have it handy right now to quote from.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Have you done any tests to confirm this?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

yes, i've personally done alot of tests of custom tags to see if what
everyone else was saying is indeed true.  what i found was enlightening, to
say the least.  you can read about one of the tests i performed and my
findings in a past to this list back in march of this year:

http://lists.evolt.org/archive/Week-of-Mon-20010319/152719.html

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Under what circumstances are custom tags slower than
> using a cfinclude or cfmodule?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

always when compared to cfinclude.  custom tags and cfmodule are exposed to
the same performance draining mechanisms and suffer similarly.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Is it just the first pass on the tag that's slower?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

that i haven't done any research on, but from my understanding of how custom
tags work i'd have to say no.  it's just as slow on every pass.  the reason
for this is that every time a custom tag is called the server must allocate
a separate memory space for the custom tag to execute in.  it executes the
custom tag and then jumps back into the memory space for the request.  it
has to do that with every call to a custom tag.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> I use custom tag almost exclusively over cfmodule and
> cfinclude for various reasons... my apps have been load
> tested to hundreds of users... reviewed by Macromedia
> consultants and I've yet to hear someone mention that
> using a cfinclude would be faster than using a custom
> tag OR to see a place where a customtag bogs down the
> application in any fashion.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

perhaps you're already writing really tight code so you don't see the
effects of the custom tag so much.  however, i can almost guarantee that by
writing the applications to not use custom tags (provided they were coded
with the same care and diligence) you'd see a performance gain.

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list