nelson icon indicating copy to clipboard operation
nelson copied to clipboard

Performance tune templating engine

Open adelbertc opened this issue 5 years ago • 2 comments

Currently our Scalate template engine usage takes a while (couple of seconds) to load + render the template, at least on the very first request (haven't tested with more than one yet) - sometimes this is enough to trigger the 3 second timeout. We should look into this more carefully and fix/tune and problems.

adelbertc avatar Sep 13 '18 16:09 adelbertc

I don't think this is an issue anymore - my prod deployment is pretty snappy when proofing blueprints

timperrett avatar Sep 22 '18 04:09 timperrett

Some initial anecdotal experience suggests the slowdown only happens on the initial load-from-classpath for the default blueprints. For instance the first deployment I did today that used a default blueprint took a couple seconds to load the template from the classpath and then render it, and actually timed out. Subsequent ones finished very fast though.

Maybe we can make it load the default blueprints at startup?

adelbertc avatar Sep 25 '18 07:09 adelbertc