improve performance around category highlighting (#849)

* remove function call and add comment

* separate crossfilter size calc into memoized function
This commit is contained in:
Severiano Badajoz
2019-07-15 16:00:23 -07:00
committed by GitHub
parent e199b14259
commit 3d6bb88556
2 changed files with 17 additions and 4 deletions
+2 -2
View File
@@ -19,12 +19,12 @@ const CentroidLabel = (state = initialState, action, sharedNextState) => {
metadataField,
categoryIndex,
categoryField,
centroidXY: calcCentroid(
centroidXY: null /* calcCentroid( This function call is computationally heavy and also leading to large GC. Before reimplementation, look into optimization and memoization
world,
metadataField,
categoryField,
layoutChoice.currentDimNames
)
) */
};
case "category value mouse hover end":