angular-ui/ui-grid

Grid performance over 10 columns and 25 rows and number of watchers

Open

#5,547 opened on Jul 13, 2016

View on GitHub
 (4 comments) (1 reaction) (0 assignees)JavaScript (2,496 forks)batch import
help wantedseverity: performance

Repository metrics

Stars
 (5,395 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi,

We're were trying to use our angular application with ui-grid on a big screen, being the grid the only element on the screen. Unfortunately, we've realized that the grid in this scenario becomes really sluggish. Looking into the issue, we've realized that the number of watchers is around 8000.

We've noticed that it seems that, roughly, every cell is adding around 10 watchers. This way, for example, for a normal screen, a grid taking up the whole space (let's say 12 columns and 25 rows) the number of watchers would be roughly 12 * 25 * 10 = 3000', well over the recommended level of 2000, and causing performance issues.

This behavior is happening as well in the tutorial so for example the grid (only the controller MainCtrl that holds the grid) in the tutorial 404 ([http://ui-grid.info/docs/#/tutorial/404_large_data_sets_and_performance]) has around 450 watchers showing 4 columns and 10 rows.

Why ui-grid needs 10 watchers per cell? Is there any way of reducing this?

Thanks,

David.

Contributor guide