angular-ui/ui-grid

Grid is build twice for each data-change when fastWatch is enabled

Open

#6.172 geöffnet am 24. Apr. 2017

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
help wantedseverity: performance

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Can be observed on the tutorial page: http://ui-grid.info/docs/#/tutorial/404_large_data_sets_and_performance

Due to these lines (https://github.com/angular-ui/ui-grid/blob/19455276ace7eef5c8dab8f719c17d7c4c31ae3a/src/js/core/directives/ui-grid.js#L56-L57) assigning a new array to the data property rebuilds the rows twice for the same change.

This has a major impact on load times of the grid, when complex rowProcessors are registered (treeBase, sort, etc.)

Contributor Guide