Ticket #403 (new defect) — at Initial Version

Opened 16 years ago

Last modified 14 years ago

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

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.

Note: See TracTickets for help on using tickets.