Thanks a lot,
var myLayer = activeDocument.activeLayer; // or do something for the activeDocument separate from the activeLayer
// now do a bunch of work on this layer using myLayer.
There is a profiler in the ESTK under the Profile menu. Check the documentation for the ESTK. I have not used it much.
I don’t know how much size of the PSD file affects the results. My plug-in (C++) also analyze layer hierarchy in a document. I do not have PSD file of that size to test my software, but my plug-in can be used in a batch mode, so I have tried it on a bout 100 documents each having about 3-10 layers and it can work for several minutes. However during parsing PSD file it also saves a bunch of clips made from layers , opens and closes PSD files makes new documents copies layers etc, and at this moment I have no way to tell precisely how much of the time goes to analyzing layers Select-Copy-Paste and disk related operations. Just for analyzing layer structure, 1 minute for 600 layers looks a bit to much to me.
If you can post somewhere a smaller example (same number of layers but smaller file for download), I could give it a try and we can compare the speed.
Europe, Middle East and Africa