I have followed the various threads on locking Application scope
variables and on the use of the Request scope, but I still have a
question.

I create and populate an Application-scope structure in Application.cfm. 
This is done only once, when the application is first initialized.  I use
this structure on many pages, within a readonly lock.

I know that I could copy (via Duplicate) the structure into the Request
scope and omit the lock.

Which method is better?  For what regime does Duplicate beat CFLOCK?  I
imagine this would be a function of the structure's complexity and of the
number of CFLOCK calls.

(A variation of the Request scope method would be to create/populate the
structure directly in the Request scope, eliminating usage of the
Application scope.  But it seems to me that this would be slower than
simply copying it from the Application scope into the Request scope.)

Thanks.
-David

P.S. My Allaire Developer Conference *unofficial* sign-ip sheet has been
moved to
www.cfm-resources.com/d/dshadovi/index.html. If you're coming, sign up!
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to