Even if you split it out, would the processing page not still end up calling the same amount of methods unless you could redesign the build process somehow? I sometimes wonder if speed is the ultimate goal and at any cost if it might just be better to use included files with UDFs when needed over CFCs.
On Tue, Jul 22, 2008 at 6:06 AM, Mike Kear <[EMAIL PROTECTED]> wrote: > I"m looking for milliseconds to shave off an app that creates XML > files. it consists fo a cfc that takes a bean with LOTS of getters > and setters, and makes an XML file out of it. > > What i have now is a cfc that has 107 methods. Each method makes a > fragment of the XML file, with some conditional logic and one method > stitches them all together and returns a completed XML string. > > My thought is that perhaps this app might run faster if instead of one > CFC with 107 methods it might be better to split the cfc into 4 or 5 > different cfcs, that load as required. > > So my question is, if there's no difference in the actual amount of > processing involved, would it be likely to run faster with one big cfc > or several small cfcs? Or to put it another way . is there a > performance hit when instantiating large CFCs? Greater than a number > of smaller CFCS? (the large one i ahve now has 3200lines and 107 > methods. It seems when i load it that there might be quite a bit of > parsing and syntax checking going on while it's being instantiated. > yes? ) > > -- > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion 8 Enterprise , PHP, ASP, ASP.NET hosting from AUD$15/month > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309438 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

