Skip to content

ngStorage causes digests through entire application #274

@gildebrand

Description

@gildebrand

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

$rootScope.$watch(function() {
_debounce || (_debounce = $timeout($storage.$apply, 100, false));
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions