Skip to content

Commit 1d93f2f

Browse files
committed
reduce precalculated
1 parent 0cd1d8d commit 1d93f2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/apache/sysds/runtime/compress/cocode/CoCodeGreedy.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ public Object call() throws Exception {
224224
final int maxCombined = c1i.getNumVals() * c2i.getNumVals();
225225

226226
if(maxCombined < 0 // int overflow
227-
|| maxCombined > c1i.getNumRows()) // higher combined than number of rows.
227+
|| maxCombined > c1i.getNumRows() // higher than number of rows
228+
|| maxCombined > 100000) // higher than 100k ... then lets not precalculate it.
228229
return null;
229230

230231
final IColIndex c = _c1._indexes.combine(_c2._indexes);

0 commit comments

Comments
 (0)