Ah thanks so much Sander, that makes a lot of sense!
I initially thought it was a problem with change detection, surprised but
happy that it's something as simple as batching DOM operations :D

On Mon, Oct 26, 2015 at 12:49 AM, Sander Elias <[email protected]>
wrote:

> Hi Chang,
>
> Ok, I took a second look, and optimized your benchmark a tad:
> http://plnkr.co/edit/I0nCUWeq6IWVDKFSsIy0?p=preview
>
> Problem was, that with the existing code, every single box was updating
> the screen on its own. My update makes it so, that the screen only updates
> once after all boxes are updated. If I really dig in, I might even get out
> some more performance.
>
> Does this clarify your issue enough?
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/o9QT5PhzJbo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to