Skip to content

Commit b71677a

Browse files
committed
pass len to distictVals and filter to help improve the performance
1 parent 990cdda commit b71677a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/streamtube/calc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ function processGrid(trace) {
223223
};
224224
}
225225

226-
function distinctVals(col) {
227-
return Lib.distinctVals(filter(col)).vals;
226+
function distinctVals(col, len) {
227+
return Lib.distinctVals(filter(col, len)).vals;
228228
}
229229

230230
function filter(arr, len) {

0 commit comments

Comments
 (0)