Ticket #403 (closed defect: fixed) — at Version 1
Tweak to boolean test in GenerationController
| Reported by: | cfgrok | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 Maintenance Final |
| Version: | 3.1.261 | Severity: | normal |
| Keywords: | Cc: |
Description (last modified by cfgrok) (diff)
The boolean test used to detect whether event generation should occur in the GenerationController is presently less efficient than it could be, as it is checking for the presence of the requested event in the loaded event-handlers structure before the check to see whether the generationEnabled config setting is set to true:
<cfif not getModelGlue().hasEventHandler(eventName) and getModelGlue().getConfigSetting("generationEnabled")>
Inverting the order of this expression will slightly reduce the overhead on framework reload requests.
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)