On Wednesday, August 7, 2002, at 04:43 , Brook Davies wrote: > If I have a page which calls several distinct CFC's one after another, is > there a speed increase if I create a "container" CFC and use the > inheritance function to inherit the functionality from the other CFC's?
You can only inherit from one parent CFC so I don't think you could actually do this anyway. > Then make only one call to the CFC which has inherited the others and let > it call the methods. Is this a better/faster way of doing it? Is there > much > overhead involved with invoking CFC's? UDFs, CFCs and custom tags all have about the same overhead now in CFMX so you can just use what feels most appropriate. Since you are invoking methods in multiple CFCs, you have the unavoidable overhead of creating instances of those CFCs in order to call methods on them. Even if you created some sort of 'container' CFC, you'd still have to create those instances in order to call the methods (and then you'd also have to create an instance of the container component and invoke a method on that!). Depending on what the methods do and how you are using them, you might be able to save some time by creating the instances once and keeping them in a shared scope and then always invoking the methods from those instances. But the important thing is to get the design right - don't get too focused on performance until you know you have a performance problem and you've identified a bottleneck! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

