barryvdh / laravel-debugbar

Debugbar for Laravel (Integrates PHP Debug Bar)
MIT License
17.03k stars 1.54k forks source link

DebugBar slowing down page load significantly (sometimes) #1360

Open pintend opened 1 year ago

pintend commented 1 year ago

Using DebugBar with Filament I have a page with 700+ views (not sure why as other pages with tables have 300+, this is probably part of my issue) and 100+ gates, i get really slow page loads until i disable the gate and view collectors

is there a way to have them lazy load only if i click the gate or views tab?

Laravel: 9.37.0 DebugBar: 3.7.0 Filament: 2.16.36

adampatterson commented 1 year ago

I experienced this as well, I found that Firefox works perfectly fine with Debug bar enabled, but Chrome absolutely grinds to a halt using about 1.5 GB of memory and 100% CPU, it will get so bad that audio will freeze, and meetings freeze until Chrome tries to refresh the page.

Disabling views did seem to help.

leettaylor commented 1 year ago

@pintend @adampatterson

I have a fork which allows you to filter which Views are loaded in to the views tab.

See my comment in #1033 for more details

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.