The execution time is very different when executing Javascript from File -> Scripts and app.doJavasc
When you select a file from the File -> Scripts menu and run it, it runs very quickly, and there is no slowdown in running it several times in succession.
However, if you run it using app.doJavascript in VBA or run the script in CEP, it runs quickly as soon as the application is first started, but the speed continues to slow down every successive run.
I am trying to show the information of the illustrator document contents in CEP or external application, but I cannot use it because of the slower speed each time I run it. Using $.gc() didn't change anything.
Both show the same behavior in 2020 and 2019 versions. I wanted to test the previous versions as well, but they are not on the Adobe Creative Cloud installable list.
I am trying to create a CEP or an external application that shows detailed information of an illustrator document, but there is a problem because the consistent speed is not available. What is the solution?
