about one year ago, we adopted Jinja2 as our template engine for python.
Since this adoption, we are dealing with constant high CPU loading.
It's normal a Jinja template compiled and cached, with simple loops and some filters use around 30% of CPU for each content generation?
For generation, only plain objects are used, without any external calls to databases, apis or complex model methods.
Templates are structured in a max-depth of 4 levels of composite includes.
There are Guidelines on how we should follow to avoid high CPU usage?