ui-layout icon indicating copy to clipboard operation
ui-layout copied to clipboard

$apply in mouse up handler affects performance in large applications

Open widmoser opened this issue 9 years ago • 0 comments

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 avatar Apr 22 '16 10:04 widmoser