I'm not sure .. anyone else have an opinion?
Todd Ashworth
- Original Message -
From: Kym Kovan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 04, 2000 7:46 AM
Subject: Re: What am I doing wrong?
Hi Todd,
If you use cfset in the Application.cfm file, the cfset gets
Hello,
My *guess* as to how CF handles it is to use a flag to determine if it has been set
already - if this flag is set don't bother checking and/or setting the variable again.
The flags
could be stored in a fast access location rather than a variable look up/variable
verification in memory
Hello,
My *guess* as to how CF handles it is to use a flag to determine if it has
been set already - if this flag is set don't bother checking and/or setting
the variable again.
Any idea which is faster?
The flags
could be stored in a fast access location rather than a variable look
Hello,
Todd Ashworth wrote:
Hello,
My *guess* as to how CF handles it is to use a flag to determine if it has
been set already - if this flag is set don't bother checking and/or setting
the variable again.
Any idea which is faster?
Again my guess would that *if* an application has
Todd,
Any idea which is faster?
CFSET is faster of course, but i think that you'll find that cfparam is
faster than :
cfif NOT Isdefined("scope.variablename")
cfset scope.variablename = something
/cfif
The flags
could be stored in a fast access location rather than a variable
This whole thread is getting a little off the orginal question, which was,
sort of, what's the best way set 'constant' variables, such as DSNs, company
names, etc., when setting them in the Application.cfm file? Is it cfset
or cfparam? Judging by the responses, I would assume that cfset is
I'm not sure .. anyone else have an opinion?
Since it was fairly easy to do - I ran loads of timing tests on the
difference between CFSet and CFParam.
CFParam runs about 1.1-1.2 times slower than a CFSet - BUT as has been
mentioned, using Application scoping speeds up the access loads - it's
Conferring w/ Justin and "Stolen" from Mike Dinowitz's HOF style guide:
Code - There are a number of code issues that should be examined. Most of
them have to be written up in separate articles due to the depth of
information. Until these articles are out, here's the basics.
Every app should
8 matches
Mail list logo