Backbone-Debugger icon indicating copy to clipboard operation
Backbone-Debugger copied to clipboard

[feature request] clear cache

Open keriati opened this issue 10 years ago • 1 comments

We have a bigger backbone application where we would like to use this debugger sometimes. Sadly after switching views a few times the page gets so slow that we can't use it anymore.

I think with a "clear cache" feature we could speed it up again. Just drop all data we have from the debugger view could be enough. Mostly we are not interested in all the startup view/models/collections but more in the changes after we start to interact with the page.

What do you think?

keriati avatar Oct 14 '14 18:10 keriati

That would be an helpful feature, thanks for the suggestion.

Right now there is another wip feature that will make the frontend (the devtools panel) to load only the objects actually requested by the user, speeding up the DOM rendering and decreasing the memory footprint, which are a big part of the slowdowns when having lots of changing instances.

Nevertheless, even by making the frontend efficient, there still will be the objects counterparts in the backend, this aspect can be handled by either allowing to clear the captured information ("clear cache") or by allowing the setup of filters before start to directly capture less information (less user friendly / usable, but more powerful), we could even have both.

However, right now I can't give an estimate on when I will start to work on this, as right now the development is a bit hanged out for work and other stuff (plus the aforementioned pending issues).

Maluen avatar Oct 15 '14 18:10 Maluen