I am trying to make a basic security controller for a web application system. The idea is that there is a User CFC and a SecurityController CFC. The User stores it list of roles and teh security controller determines if the user has to parts of the site. Example:
<cfif SecurityController.HasAccess(User, "publications")>....</cfif> Inside the HasAccess method it returns: <cfreturn ARGUMENTS.User.HasRole(ARGUMENTS.Role) /> Ok, now the problem is that the page where I build my navigation has like 15 of these CFIF statements. The page takes like 60 ms to run (and like 300+ on a crappy machine). I am trying to figure out where the bottle neck is. Even when my User.HasRole() method returns a static "1"... the template still takes a while to run. It appears that the bulk of the overhead here comes directly from the fact that i am using nested method calls. Does this make sense? I have tried to remove all content other than the CFIF tags themseleves and the run time doesn't change. Please help. Either my architecture is complete junk, or CFCs just have waaaay more overhead than i realized. Thanks, Ben ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212134 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

