-
1. Re: Is there a performance difference between Automation Plug-ins and the scripting system?
Tom Ruark Aug 9, 2013 9:00 AM (in response to drelidan)Are you using the DOM or the ActionDescriptor, ActionList, ActionReference API? There is a significant slow down using the DOM when looping over the layers. I have that as an item to improve but for a document with large layers, 100+ I would advise trying to get the layer + layer set count via ActionDescriptor and loop them that way. It is a lot of work however! Hopefully I can improve it soon and you wont have to deal with writing a workaround.
-
2. Re: Is there a performance difference between Automation Plug-ins and the scripting system?
drelidan Aug 9, 2013 9:34 AM (in response to Tom Ruark)Thanks for the reply. I ended up just benchmarking the current implementation that we are using (which goes through DOM from all indications, I wasn't the original author of the code) and found that accessing each layer was taking upwards of 300 ms. I benchmarked iterating through the layers with PIUGetInfoByIndexIndex (in the Getter automation plug-in) and found that the first layer took ~300 ms, but the rest took ~1 ms. With that information, I decided that it was worthwhile rewriting the functionality in an Automation plug-in.


