> Which code is better and why?
> 
> A: Locking the whole loop...

Since the loop uses a Session variable in its COLLECTION attribute, you need
to lock the loop, and not just its contents. There's nothing wrong with
copying the structure by value into a local scope, all other things being
equal, as you're doing in your example C, either.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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