Hi.
It is possible to cut down execution time of certain spectra tags that
contain a lot of <cfparam> statements by a very significant amount by
replacing <cfparam> with isdefined/cfset combinations.
For example, in cfa_globalsettings, there are a lot of constructions like
the following
<cfset temp = StructGet( "request.cfa.logging" )>
<cfparam name="temp.logPage" default="no">
<cfparam name="temp.logCachedObjects" default="no">
<cfparam name="temp.activeLogFrequency" default="HOURLY">
<cfparam name="temp.exceptions" default="no">
Now if one replaces these with
<cfscript>
temp = StructGet( "request.cfa.logging" );
if (not IsDefined("temp.logPage"))
temp.logPage = "no";
if (not IsDefined("temp.logCachedObjects" ))
temp.logCachedObjects = "no";
if (not IsDefined("temp.activeLogFrequency"))
temp.activeLogFrequency = "HOURLY";
if (not IsDefined("temp.exceptions"))
temp.exceptions = "no";
</cfscript>
one can reduce execution time of cfa_globalsettings from 34ms to about 7ms
(and perhaps even more.) Tested on a Sun blade100 with solaris 8, CF
4.5.1SP2 and spectra 1.5.5.
Has anyone else gone through existing spectra code and see what else can
be changed to speed things up?
Cheers
Michiel
--
Michiel Boland <[EMAIL PROTECTED]>
Digital Valley Internet Professionals
Plantsoen 17, Wageningen, The Netherlands
Phone: +31 317 465555, Fax: +31 317 460276
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.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.