Grid performance over 10 columns and 25 rows and number of watchers
#5.547 geöffnet am 13. Juli 2016
Repository-Metriken
- Stars
- (5.395 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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.