Great idea - obviously the quickest solution is to look at cfparam......
-----Original Message-----
From: Michiel Boland [mailto:[EMAIL PROTECTED]]
Sent: 04 September 2001 11:33
To: Spectra-Talk
Subject: idea to speed up spectra
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
------------------------------------------------------------------------------
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.