Question
Garbage collection and closure
I am running a remote script from bridge that opens a complex dialog in photoshop. I need to run the dialog in photoshop because it displays fonts, styles and actions, which are not available in bridge.
When I close the dialog I return to my bridge script. If I repeated open the remote script with the complex dialog I continue to use up resources and the dialog opens more slowly each time.
If I run the remote script directly from the ESTK I still lose reources and it slows down, but not as significantly as when run as a remote script via bridgetalk.
I think this is caused by inner functions in my dialog, which are creating closures, which in turn are preventing garbage collection.
Has anyone experienced this and do you have any tips to prevent the performance degradation?
When I close the dialog I return to my bridge script. If I repeated open the remote script with the complex dialog I continue to use up resources and the dialog opens more slowly each time.
If I run the remote script directly from the ESTK I still lose reources and it slows down, but not as significantly as when run as a remote script via bridgetalk.
I think this is caused by inner functions in my dialog, which are creating closures, which in turn are preventing garbage collection.
Has anyone experienced this and do you have any tips to prevent the performance degradation?
