> I guess I'm hoping that future versions of CF will require *less* locking.
> The whole locking thing is silliness that should be handled automatically
> within CF.
>
> But the important point is that the "Single Threaded Sessions"
> option makes session variable locking unnecessary.  And I'll bet a
> dollar that it doesn't have a discernable affect on real-world
performance.
> Plus you get cleaner code.

OK, here's why I prefer to lock by hand

Say you're setting 30 variables into the Application scope, you want to do a
couple of non-lockable things in the middle

I set one CFLock around the whole thing, then the server only has to do one
lock

Now, take the example of the server having to do the locking

You set your first variable (lock/unlock), then you set another
(lock/unlock), keep on going for 30 variables - how much slower would that
be on the server?

"Ah, how about if the server checks to see if several lines have code to
lock" I hear you say... so, what if you want to do something in-between that
doesn't really need locking, then it'd still have to lock/unlock around the
blocks and this is still slower than you doing the hand coding

Simplest method? Make a Snippet which has most of the command information in
there, and then you can just hot-key it... how difficult is that?

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to