I just discovered after some thorough searching in my application that this plugin causes ~10 digests per second. This makes our application feel slow in some parts, and we would really like to get rid of this. I tried commenting out the referenced line, and then our application got way faster.
Why is this line necessary, and what can we do about it? I guess that this is were data is actually persisted, since it's name infers that it's doing some kind of internal digest.
|
$rootScope.$watch(function() { |
|
_debounce || (_debounce = $timeout($storage.$apply, 100, false)); |
|
}); |
I just discovered after some thorough searching in my application that this plugin causes ~10 digests per second. This makes our application feel slow in some parts, and we would really like to get rid of this. I tried commenting out the referenced line, and then our application got way faster.
Why is this line necessary, and what can we do about it? I guess that this is were data is actually persisted, since it's name infers that it's doing some kind of internal digest.
ngStorage/ngStorage.js
Lines 206 to 208 in b8054d4