php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

Reduce memory usage for consecutive requests with stacked data

Open dotdash opened this issue 1 year ago • 2 comments

Currently, the session stores stacked data, which in turn might contain the session data if a RequestDataCollector is active. This leads to exponential growth in memory usage and rapid performance degradation if multiple requests add stacked data before the next time the debug bar is rendered.

We can avoid this be temporarily removing the stacked data from the session while collection data.

Fixes #665

dotdash avatar Aug 20 '24 13:08 dotdash