The number of possible speed-ups is almost innumerable in versions 1.0x and 
1.5.

I think that the product was shipped with the principle of functionality in 
mind and there simply wasn't enough time to employ all the tiny code 
improvements which add up to many milliseconds over a complex page request.

I haven't combed carefully through the code since 1.51 was released, but I 
would bet that there are many possible improvements. How ever slight they 
may be I think that they would be noticeable in a system like Spectra.

Spike


At 20:32 03/07/2001 Tuesday, you wrote:
>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.

Reply via email to