| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.