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