angular-ui/ui-grid

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

Open

#6,172 创建于 2017年4月24日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)JavaScript (5,395 star) (2,496 fork)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.)

贡献者指南