It is incredibly important to specify scopes.
An example of it making more than a little difference:
If you do an isDefined() on a variable, and its not scoped, and it doesn't
exist, CF will methodically check through all the scopes looking for it.
This includes the CGI scope. When it checks the CGI scope again, it will
actually requery the Webserver for these values and fetch them again, just
incase they've been modified. 
That will slow you down quite a bit and is something to avoid.

Regards 

Darren Tracey
Systems Analyst
HR Systems and FastTrack, Web and Integration Services
p: + 61 7 3232 4091 (x64091)
f: + 61 7 3232 4744
e: [EMAIL PROTECTED]
l: Lvl 3, 388 Queen St Brisbane QLD 4000
m: Suncorp IPC IT048, GPO Box 1453, Brisbane QLD 4000


> -----Original Message-----
> From: Chad Renando 
> Sent: Wednesday, 27 April 2005 11:47 AM
> To:   CFAussie Mailing List
> Subject:      [cfaussie] [best practice or your practice] Scoping
> variables
> 
> I am hitting the books, filling in the chasms in my CF knowledge, and
> would like to run the occasional "best practice or your practice" Q's
> by you guys.
> 
> SCOPING
> Does you always scope your variables?  The book says it improves
> performance.  By how much?
> 
> Chad
> who used to rinse with Scope before switching to Listerine
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/

-----------------------------------------------------------------------------------
This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its 
related entities "Suncorp". 

Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 
55  or at suncorp.com.au.

The content of this e-mail is the view of the sender or stated author and does 
not necessarily reflect the view of Suncorp. The content, including 
attachments, is a confidential communication between Suncorp and the intended 
recipient. If you are not the intended recipient, any use, interference with, 
disclosure or copying of this e-mail, including attachments, is unauthorised 
and expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and delete the e-mail and any attachments from 
your system.

If this e-mail constitutes a commercial message of a type that you no longer 
wish to receive please reply to this e-mail by typing Unsubscribe in the 
subject line.


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to