Performance of template rendering in Django 4.2 vs. 5

Hi, just wanted to note here that I also noted a performance penalty in templates after upgrading from 4.2 to 5.2.
One big page went from 1.2s to 2s aprox when rendering about 3000 items in a loop.
Sentry said the average response time has increased about 300ms (same as author here).
At the same time I also upgrade Python from 3.8 to 3.12, Ubuntu from 20.04 to 24.04. So there were many changes and probably is not directly related to Django.
I saw that template performance in Django has only improved: airspeed velocity

I’m not able to go back to 4.2 and share changes, sorry.