Skip to main content
Participant
August 26, 2008
Question

CFC VS CFML - Once and for all

  • August 26, 2008
  • 1 reply
  • 246 views
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





    This topic has been closed for replies.

    1 reply

    Inspiring
    August 26, 2008
    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.