Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : CanJS and Memory Leaks

$
0
0
You can separate this code into a few distinct chunks to figure out what is causing the leak. I recommend making the following actions trigger-able via a simple button click so you can take an initial snapshot then run the action a bunch of times before taking another snapshot.

doTimeout with a noop that runs a bunch of times when the button is clicked.
Do a bunch of findAlls when the button is clicked.
Setup live binding and update the underlying Observe a bunch of times when the button is clicked.


Viewing all articles
Browse latest Browse all 3491

Trending Articles