I have no idea if wrapping the entire request in a CFTRY..CFCATCH will slow
down the request. In fact, I don't even care, unless app performace becomes
a problem, and I've spent time optimizing the rest of the system
(particularly the DB). IMHO, you should NEVER make high-level architecture
decisions based on performace. Design the system as well as possible from
an architecture standpoint. Experience shows that good architecture usually
leads to good performance, and the places that it doesn't are usually
because the need for maintainability or abstraction were more important than
raw speed. Six months down the road, it's a lot easier to do optimization
than rearchitecting, so put them in the right order on the priorities list
up front.
</rant>
In FB4's case, if you've got a exception handling plugin, you're entire
parse file is wrapped in a CFTRY..CFCATCH anyway, so adding one to index.cfm
isn't going to matter much. The only different will be the runtime core,
which is quite trivial (the vast majority of the core code is in the other
three files).
Cheers,
barneyb
> -----Original Message-----
> From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 17, 2004 5:14 PM
> To: CF-Talk
> Subject: RE: FB4 catching fusebox exceptions
>
>
> > - Application.cfm runs
> > - index.cfm runs and includes the runtime
> > - the runtime does some preprocessing
> > - the runtime calls the loader to load the XML files, if needed
> > - the runtime passes the circuit and fuseaction name to the
> > parser to build the parse file, if needed, and saves it to
> > the 'parsed' directory
> > - the runtime executes the parse file
> > - the runtime returns to index.cfm
> > - OnRequestEnd.cfm runs
>
> Thanks Barney, makes sense. However wrapping the contents of
> index.cfm in a
> cftry essentially wraps the entire request in a cftry does it not?...
> Potentially hindering performance?
>
> My understanding of the execution of the events you outlined
> above was a bit
> off, thanks for the clarification.
>
> Mike
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

