I have a plugin which dynamically loads content via JS from the server. On the server I’m executing a function which puts together that content. The execution time of this function is significantly shorter (factor 2-4) when called from Macro.execute in comparison to being called from the servlet which communicates with JS. The parameters are all the same.
Any ideas why?