CFC VS CFML - Once and for all

This is a discussion on CFC VS CFML - Once and for all within the Cold Fusion forums in Application Servers & Tools category; Hi Everyone, From what I have gathered the main advantages of using cfc's are in the code organization and code reuse. It seems certain that the same code written in plain cfml will run faster than one in which calls are made to cfc methods. Even if I instantiate a cfc and persist it in the application/server scope, the plain cfml code runs faster than the one using the cfc approach. Am I missing something here or does the OOP path definitely has a performance handicap. Thanks for your inputs! S...

Go Back   Application Development Forum > Application Servers & Tools > Cold Fusion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-26-2008, 03:10 AM
codism
Guest
 
Default CFC VS CFML - Once and for all

Hi Everyone,
From what I have gathered the main advantages of using cfc's are in the code
organization and code reuse. It seems certain that the same code written in
plain cfml will run faster than one in which calls are made to cfc methods.
Even if I instantiate a cfc and persist it in the application/server scope,
the plain cfml code runs faster than the one using the cfc approach. Am I
missing something here or does the OOP path definitely has a performance
handicap.

Thanks for your inputs!
S







Reply With Quote
  #2  
Old 08-26-2008, 08:14 AM
Dan Bracuk
Guest
 
Default Re: CFC VS CFML - Once and for all

I've never measured execution time but I'll accept your observations. I always
try to keep things as simple as possible and cfm files are simpler than cfcs.
Therefore I need a reason to write cfc's.

My reasons are code reuse and making the code available outside of cold
fusion. I've written cfc's for both reasons.

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:45 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.