fsr-de / myHPI

Django/Wagtail page serving myhpi.de
https://myhpi.de
11 stars 11 forks source link

Improve menu rendering performance #328

Open frcroth opened 1 year ago

frcroth commented 1 year ago

Loading a page takes about 5s for me. This should be improved. Maybe use django-debug-toolbar for measuring performance impacts.

jeriox commented 1 year ago

We profiled the page. A big improvement could be made by excluding pages that are not visible in menus from the menu tree generation. Another improvement has been achieved by using template fragment caching.

The page still loads approx. 10x faster without the menu, so the process of rendering the HTML for the menu is still very slow. This should be investigated further and maybe improved by using less template inclusion and instead rendering all levels in one template.

frcroth commented 10 months ago

This was probably also caused by #402 because the menu uses them. Vote to close.

jeriox commented 10 months ago

for me the pageload time in firefox from the production instance is still at 600-800ms, above the recommended value of 500ms. I think another round of investigation would be good, although with much lower priority since it is acceptable now