Performance improvements - > Variable Scoping


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

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


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




Zac Spitzer