Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] BottomBarStatistics: limit redundant getter calls
While we iterate over the cells to check their visibility, we keep checking the visibility of cells over which we already know that their col (or row) is hidden. This revision adds a memoization of limit the calls to the different getters involved by memoizing them as well as skips the visit of cells within columns that are hidden. Benchmark --------- In Firefox with the largeDataSet of 260k cells, averaged over 10 runs: Skipping entire hidden columns _computeStatisticFnResult ----------------------------------- before: 95.8 ms after: 79 ms Skipping hidden columns + memoization _computeStatisticFnResult ----------------------------------- before: 95.8 ms after: 72.4 ms Task: 3827324
- Loading branch information