So I was trying to upgrade an older Ansible environment from Ansible 2.7 + Jinja2 2.8 and ran across some severe performance degradation. A template task that used to take about 30 sec to complete across all hosts now takes about 15 min, bottlenecking on the CPU of the management host.
Unfortunately I don't know enough about the Ansible internals and its integration with Jinja2 to understand what's going on here. Can someone explain why this change would cause such a severe performance impact?