EMBPERL: Calling Execute() multiple time per a page.

2016-08-25 Thread Donavon
I have a loop that is calling Execute() to load a EMBPERL page as a template. This template sets up and contains a bootstrap modal and some javascript . The page I'm using as a test calls the template at least 500x. This is really slowing down the loading of the page for the client. Are ther

Re: EMBPERL: Calling Execute() multiple time per a page.

2016-08-25 Thread Michael Smith
500 times - that's a lot! Maybe you could run it once offline, and save the result as HTML? Just an idea. On Thu, Aug 25, 2016 at 10:35 PM, Donavon wrote: > I have a loop that is calling Execute() to load a EMBPERL page as a > template. This template sets up and contains a bootstrap modal and

Re: EMBPERL: Calling Execute() multiple time per a page.

2016-08-25 Thread Ed Grimm
What you have is a slow version of an Embperl subroutine. Use an actual Embperl subroutine instead. Use Execute at most once to load it. It's my understanding that generally, templates are done in Embperl::Object. But when doing it that way, your template is stored in your base Embperl::Obje