angular-ui/ui-grid

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

Open

#5547 aperta il 13 lug 2016

Vedi su GitHub
 (4 commenti) (1 reazione) (0 assegnatari)JavaScript (2496 fork)batch import
help wantedseverity: performance

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor