> recently i just helped someone on the list with a problem, and one of the
> line(s) of code looked like this..
>
> <CFSET temp_name1=ucase(left(ListGetAt(fullname, 1,
> "-"),1))&right(lcase(ListGetAt(fullname, 1,
> "-")),len(lcase(ListGetAt(fullname, 1,
> "-")))-1)&"-"&ucase(left(ListGetAt(fullname, 2,
> "-"),1))&right(lcase(ListGetAt(fullname, 2,
> "-")),len(lcase(ListGetAt(fullname, 2, "-")))-1)>
>
> I didn't feel like doing a lot of CFSETS.  Out of curiousity, I was
> wondering if any of you would know if abusing function nesting is much
> faster than doing a bunch of CFSETS and having to name new variables,
> regarding processing time.  And i guess that most people wouldn't do this
> because it's hard to dissect and understand.  hehe I already
> forgot how it does it!  :)

It's not so much abusing the nesting, but you're slowing it down by repeated
use of ListGetAt() which is very slow because it's a List function

Setting variables of those before you do the functions would be faster

Oh, and since you're hitting several CFSETs in a row, use CFScript

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