Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

$apply in mouse up handler affects performance in large applications #207

Open
widmoser opened this issue Apr 22, 2016 · 0 comments · May be fixed by #208
Open

$apply in mouse up handler affects performance in large applications #207

widmoser opened this issue Apr 22, 2016 · 0 comments · May be fixed by #208

Comments

@widmoser
Copy link
Contributor

In complex applications the $rootScope digest cycle can take a considerable amount of time. The ui-layout triggers a $rootScope digest cycle on every mouseUp (always) and mouseMove (during resizing) thus slowing down the whole application. This effect accumulates when multiple ui-layouts are used within a view, causing multiple digest cycles.

I have tried to simulate this issue in a plunker, by emulating a long digest cycle: Clicking on the button will open the alert with a considerable delay and moving the splitbar is very laggy.

@widmoser widmoser linked a pull request Apr 22, 2016 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant