angular-ui/ui-grid

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

Open

#6,172 opened on 2017年4月24日

GitHub で見る
 (0 comments) (1 reaction) (0 assignees)JavaScript (5,395 stars) (2,496 forks)batch import
help wantedseverity: performance

説明

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

コントリビューターガイド