I have created an Action which creates a series of Luminosity Masks as individual Channels.
The action takes about 2 seconds to complete when run from the actions pallet.
I then took the information from the scripting log, pasted it in as a function in an HTML panel and executed it from a button.
The time it takes to run from that method is about 30 seconds compared to the 2 seconds it took to run from the actions pallet.
Is there any reason for the speed discrepancy ?