Performance improvements - > Variable Scoping

Description

I have been looking into the performance of Preside and found some easy issues to address

Mostly, lots of of unscoped variable access, especially in hot (called a lot) functions

Upgrading from Coldbox 5.4 will solve quite a few of these problem as they have already addressed them

Using `this.localmode=true;` will also improve performance, but it will cause a lot of the existing unscoped code to crash, i.e unscoped references to the variable scope in functions will need to be scoped.

That prevents scope leakage from .cfm's called within functions

https://github.com/pixl8/Preside-CMS/blob/stable/system/services/maintenanceMode/MaintenanceModeService.cfc#L139

if you enable debugging, you can see an aggregate view of the debugging logs, specifically scope lookups with my performance analzyer plugin

Environment

None
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Unassigned

Reporter

Zac Spitzer