Skip to content
Permalink
Browse files
[IOTDB-4120] Modify build method of LayerMemoryAssigner
lancelly committed Aug 15, 2022
1 parent 02416f4 commit 5faa9da
Showing 1 changed file with 7 additions and 3 deletions.
: 1);
}
public void build() {
int memoryPartitions = 0;
for (Entry<Expression, Integer> expressionReferenceEntry :
expressionReferenceCount.entrySet()) {
memoryPartitions +=
expressionReferenceEntry.getValue()
* (expressionReferenceEntry.getKey() instanceof FunctionExpression ? 2 : 1);
Expression expression = expressionReferenceEntry.getKey();
if (expression instanceof FunctionExpression) {
memoryPartitions += 2;
} else if (!(expression instanceof ConstantOperand)) {
memoryPartitions += 1;
}
}
memoryBudgetForSingleReference =
memoryPartitions == 0 ? memoryBudgetInMB : memoryBudgetInMB / memoryPartitions;

COLLECTOR-SAHAB / differentiating test: UDTFAlignByTimeDataSetTest

memoryPartitions = 16 only occurs in the original version.

memoryPartitions=6 only occurs in the patched version.

}
public int getReference(Expression expression) {

0 comments on commit 5faa9da

Please sign in to comment.