Execution time of a function shorter when called from Macro.execute instead of servlet

Dear Community,

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?

Thank you

Andreas

I ended up executing the rendering in parallel threads. This results in acceptable response times.

1 Like