> Are there any good docs that cover writing more efficient code?

Sure. There are all sorts of things out there on this topic. However, we
would have to first clarify what we mean by "efficient". Do we mean faster?
Easier to write? Easier to maintain? If I'm using a high-level language like
CFML, I'm probably most interested in the latter.

> I also remember somebody saying that cfscript doing a function if 
> faster than using a cffunction tag. Is this true?

Who knows? More importantly, who cares?

The CFFUNCTION tag has several advantages over CF 5 function syntax. It can
enforce input and output data types. It allows you the full range of CFML
functionality. If you found it was ten milliseconds slower, consistently,
would those things be worth sacrificing for a little bump in speed?

In any case, it's unlikely that anyone has done comprehensive testing in any
meaningful way on this topic. Most people who do this sort of thing, do it
by looping over something a lot of times. Unfortunately, that is not a
useful test to determine real-world performance differences - to do that,
you need to run code concurrently, not serially, and load-testing is a lot
more difficult and expensive than running one page with a big loop in it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206689
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to