Hi.
The <cfparam> tag is very slow, compared to cfset/cfscript constructions.
I.e.
<cfparam name="attributes.foo" default="">
<cfparam name="attributes.bar" default="">
is noticeably slower than
<cfscript>
if (not isdefined("attributes.foo"))
attributes.foo = "";
if (not isdefined("attributes.bar"))
attributes.bar = "";
</cfscript>
Now all of this would not be a problem were it not for the fact that
<cfparam> is quite heavily used in spectra. My rough estimate is that
spectra can be sped up 2 to 3 times just be removing and/or rewriting the
cfparam constructions.
For example, the cfa_globalsettings tag, which is used in just about every
spectra page, takes 31 milliseconds to run. This can be reduced to 8 ms
merely by converting the cfparams to cfscript as illustrated above.
Now, there are two things one can do to speed up spectra:-
1. Rewrite all spectra tags
2. Implement a faster <cfparam> in ColdFusion itself.
What should we do?
I am using CF5 on Solaris BTW.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.