I have a single page application using AngularJS and I am facing one performance issue in it. My application processes incoming events from the server side which are passed to the AngularJS framework on the client side using ASP.NET SignalR. There are millions of events that can be received by my application and there is no performance issue on the server side and it easily passes these number of events one after the other to the AngularJS framework. The problem lies on the client side. After processing the event, i use $scope.$apply() to update the page and display the events. In such a case where there are multiple events being received one after the other, calling $scope.$apply() every time slows down the application and does not show the events quickly. The events will be passed at random so I don't even know how any events will be received by my application at any point in time.
Any ideas on how to get this issue resolved will be very helpful.
Thanks.