Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Root scope dirty check triggered by a child scope's apply #8184

Closed
@MoonStorm

Description

@MoonStorm

Most directives call $scope.$apply, which is currently poorly implemented in Angular. The call is proxied to $rootScope.$digest, which has the effect of dirty checking ALL the scopes.

As I'm in charge of hooking up the data onto the scopes, I already know what needs to be dirty checked and what not. If I've set up my data to flow inherently the same as the scopes, there should be an option inside Angular to tweak the default nasty dirty-checking behaviour.

This naive design decision has massive performance implications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions