Ticket #403 (closed defect: fixed)

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 (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

Changed 16 years ago by cfgrok

  • status changed from new to closed
  • resolution set to fixed
  • description modified (diff)

Fixed in revision 283

Note: See TracTickets for help on using tickets.