Oh, so CFLOCK is a *feature*.   Maybe you've taken off your Macromedia cap,
but I can see a faint MM on your forehead. (smile-hope you don't mind the
teasing, Mr. DeathClock sir. ;^)

Seriously, providing the necessary internal concurrency control for getting
and setting variables should be trivial and lightning fast.  It should be at
least an order of magnitude faster than, say, parsing and executing <CFLOCK>
and </CFLOCK>.

I'm not saying that there is no legitimate use for CFLOCK, although I don't
think you've provided a very compelling one.  CFLOCKing around calls to
questionable CFX tags is certainly a good thing.

Pointing out legitimate uses for CFLOCK is not really relevent to the issue.
We shouldn't HAVE to manage ColdFusion's internal operations.  I use tools
like ColdFusion so that I can concentrate on solving my clients' problems.

[EMAIL PROTECTED]

----- Original Message -----
From: "Raymond Camden" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, March 18, 2002 2:25 PM
Subject: RE: UDF question


> (Taking off Macromedia cap and speaking as just one of yall...)
> The question is - do you want CF to automatically handle everything for
> you at the sacrifice of speed? Here is a good example:
>
> <cfset session.x = 1>
> <cfset session.y = 2>
> <cfloop ...>
> <cfset session["foo#x#" = >
> </cfloop>
>
> If CF had to auto lock this, it would need to use:
>
> <cflock ..>
> <cfset session.x = 1>
> </cflock>
> <cflock ..>
> <cfset session.y = 2>
> </cflock>
> <cfloop ...>
> <cflock ...>
> ...
> </cflock>
> </cfloop>
>
> It would be very difficult to make a system smart enough to know "Hey, I
> could use one lock around this particular block of code." Therefore, we
> would be stuck with the slower alternative. Personally, I'd rather just
> do the work. It can't be that hard to cflock, or duplicate to the
> request scope.
>
> ...... again, all of the above is my personal opinion, not that of the
> company.....
>
>
> =======================================================================
> Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
>
> Email    : [EMAIL PROTECTED]
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." - Yoda

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to