On Friday, Sep 19, 2003, at 16:24 US/Pacific, Sean A Corfield wrote: > "slow" in comparison to, say, CFC method invocation.
So I went back and did some linear timings... yeah, I know they don't tell you 'real world' performance but it was interesting nonetheless: I ran these three tests in a long loop: #1: <cf_tag> (with tag.cfm in same directory) #2: <cfmodule template="tag.cfm"> #3: <cfimport taglib="." prefix="x"/> <x:tag> <x:tag> was the fastest - by quite a margin; next was <cf_tag>; slowest was <cfmodule>. There wasn't a huge difference between <cf_tag> and <cfmodule> tho'. Here's a sample result for 100,000 iterations: cf_tag: 12148 cfmodule: 13497 x:tag: 9465 tag.cfm contains just: <cfoutput></cfoutput> The test file looks like this: <cfoutput> <cfset a = getTickCount()/> <cfloop index="i" from="1" to="100000"> <cf_tag> </cfloop> <cfset b = getTickCount()/> cf_tag: #b-a#<br /> <cfset a = getTickCount()/> <cfloop index="i" from="1" to="100000"> <cfmodule template="tag.cfm"> </cfloop> <cfset b = getTickCount()/> cfmodule: #b-a#<br /> <cfimport taglib="." prefix="x" /> <cfset a = getTickCount()/> <cfloop index="i" from="1" to="100000"> <x:tag> </cfloop> <cfset b = getTickCount()/> x:tag: #b-a#<br /> </cfoutput> Sean A Corfield -- http://www.corfield.org/blog/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137783 Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com