django-commons / django-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.
https://django-debug-toolbar.readthedocs.io
BSD 3-Clause "New" or "Revised" License
8.11k stars 1.05k forks source link

Extremely long request time with StaticFilesPanel #1394

Open pembo13 opened 4 years ago

pembo13 commented 4 years ago

I just recently upgraded from django-debug-toolbar==2.2 to django-debug-toolbar==3.1.1. Unfortunately, I did this after a few changes to the core behaviour of the project in question, and so upon noticing a significant increase in response times, across all views I started taking apart changes to no available until I downgraded django-debug-toolbar and everything went back to normal.

Coming here, If found #1263, and proceeded to start testing the removal of panels, starting with an empty DEBUG_TOOLBAR_PANELS. Ultimately, I singled out debug_toolbar.panels.staticfiles.StaticFilesPanel

To quantify the problem, using response times as seen in Firefox's Network Tab for a HTML response:

matthiask commented 1 month ago

Do you have additional details where the slowdown happens?