I am currently trying to develop a certain plugin and when I had the console open and entered scripts in the console to test it's functionality I noticed big performance issue. Without the console open it seemed to run smoothly. I was pretty sure the issue came from using eval().
After that I've watched a video about the function object. And the author of that video said, that the function object creates it's own global space and does not know variables outside of it, so I just want to know why the following works, at least in MV:
I am actually glad, that it works, because this made my plugin to be changed from eval() to the function object easy without needing to do workarounds around the own global space restriction. The performance issue seem to be gone aswell.
After that I've watched a video about the function object. And the author of that video said, that the function object creates it's own global space and does not know variables outside of it, so I just want to know why the following works, at least in MV:
I am actually glad, that it works, because this made my plugin to be changed from eval() to the function object easy without needing to do workarounds around the own global space restriction. The performance issue seem to be gone aswell.