Adobe Dreamweaver Forums



Last 10 THreads :         x and y into Latitude and longitdue (Last Post : Ayush.Jain - Replies : 10 - Views : 11 )           »          Site Map problem (Last Post : Kcheval - Replies : 0 - Views : 1 )           »          Image icons disappear when CPD is deleted (Last Post : Peter Grainge - Replies : 1 - Views : 2 )           »          FMS3 Linux and virtual host (Last Post : RussianMedved - Replies : 0 - Views : 1 )           »          Flash Media Server 2.0 (Last Post : Ajay P - Replies : 3 - Views : 13 )           »          Advanced datagrid using Remote Objects (Last Post : rkcy - Replies : 0 - Views : 1 )           »          Unable to create SWC in Flash CS4 (Last Post : ChickenSupreme - Replies : 0 - Views : 1 )           »          Extension Manager CS4 not installing extensions inDreamweaver CS4 (Last Post : Tom Dupre - Replies : 16 - Views : 17 )           »          Upsized Access DB not playing friendly (Last Post : Dooza - Replies : 1 - Views : 2 )           »          FLV won't work (Last Post : mixmasterdsr04 - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 03:56 AM
codism
 
Posts: n/a
Diggs:
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
Sponsored Links
  #2 (permalink)  
Old 10-01-2008, 03:56 AM
Dan Bracuk
 
Posts: n/a
Diggs:
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 09:34 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk