Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Luis MajanoLuis MajanoReporter
Brandon BrownBrandon BrownComponents
Fix versions
Priority
Trivial
Details
Details
Assignee
Luis Majano
Luis MajanoReporter
Brandon Brown
Brandon BrownComponents
Fix versions
Priority
Sentry
Sentry
Sentry
Created December 15, 2017 at 9:50 PM
Updated March 7, 2018 at 9:35 PM
Resolved March 7, 2018 at 9:35 PM
I have started implementing Wirebox into our legacy code and in a few parts where there are objects with a deep hierarchy of dependencies where the objects get created inside of loops, our application slows down significantly due to scoping.
For example I was able to shave off 20 seconds worth of application time by going in and scoping all of the variables that were showing up in the implicit variable access table in the Lucee debug output. The main culprit that I have seen in the debug output in my particular case is the "instance" variable that is used everywhere. By prefixing "variables" to it there was a significant performance increase.
Is there any side effects other than making the code ugly that could come from scoping everything? I would be willing to go through myself and scope everything if you guys could see the benefit. I don't really like the idea of modifying the core since it would break with updates in the future which is why I am hesitant to even implement the changes on production.