Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfmodule performance

Status
Not open for further replies.

ice7899

Programmer
May 14, 2006
59
GB
I read in one of the livedocs that cfmodule is to be avoided.
Under Performance donts the article reads
Don't use cfmodule

It's slower than a CFC method invocation, it's slower and uglier than using a custom tag with a prefix, it's even slightly slower than a regular custom tag invocation. Better options exist: use a CFC (preferred), use cfimport and invoke a custom tag using a prefix (always preferable to invoking a custom tag via cfmodule), or even simply include a file.

Is this advice to be followed. I have extensively used cfmodule and am not too keen on having to reqrite them in a different form. Is there a performance issue here ?
 
when it comes to being slow, i would put GetTickCount() functions one being start and one being stop around cfmodule and cfoutput the difference between the stop and start to see how many miliseconds it took to run it. then i would do the same for the custom tag and see if there is a +/- difference and go from there.
hope it helps...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top