Ben, If you have debugging turned on, I would say it is responsible for longer time. Try turning it off.
HTH On 7/18/05, Ben Nadel <[EMAIL PROTECTED]> wrote: > 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 > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212144 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

