Skip to content

Commit

Permalink
Merge pull request #587 from FgForrest/dev
Browse files Browse the repository at this point in the history
fix: Formula results haven't been computed!
  • Loading branch information
novoj committed May 30, 2024
2 parents 91932b0 + 0cd4605 commit 0bb60bf
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,20 @@ protected long getCostInternal() {
}
}

@Override
protected long getCostToPerformanceInternal() {
if (supersetBitmap != null && subtractedBitmap != null) {
return getCost() / Math.max(1, compute().size());
} else {
final Bitmap supersetBitmap = innerFormulas[1].compute();
if (supersetBitmap.isEmpty()) {
return getCost() / Math.max(1, compute().size());
} else {
return super.getCostToPerformanceInternal();
}
}
}

@Nonnull
@Override
protected Bitmap computeInternal() {
Expand Down

0 comments on commit 0bb60bf

Please sign in to comment.