angular-ui/ui-grid

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

Open

#6 172 ouverte le 24 avr. 2017

Voir sur GitHub
 (0 commentaires) (1 réaction) (0 assignés)JavaScript (2 496 forks)batch import
help wantedseverity: performance

Métriques du dépôt

Stars
 (5 395 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.)

Guide contributeur