Skip to content

Commit ebe758d

Browse files
committed
[MINOR] Reduce compression settings logging
1 parent 12367cb commit ebe758d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/org/apache/sysds/runtime/compress/CompressionSettings.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ public class CompressionSettings {
128128
/** The sorting type used in sorting/joining offsets to create SDC groups */
129129
public final SORT_TYPE sdcSortType;
130130

131+
private static boolean printedStatus = false;
132+
131133
protected CompressionSettings(double samplingRatio, double samplePower, boolean allowSharedDictionary,
132134
String transposeInput, int seed, boolean lossy, EnumSet<CompressionType> validCompressions,
133135
boolean sortValuesByLength, PartitionerType columnPartitioner, int maxColGroupCoCode, double coCodePercentage,
@@ -151,11 +153,13 @@ protected CompressionSettings(double samplingRatio, double samplePower, boolean
151153
this.minimumCompressionRatio = minimumCompressionRatio;
152154
this.isInSparkInstruction = isInSparkInstruction;
153155
this.sdcSortType = sdcSortType;
154-
if(LOG.isDebugEnabled())
156+
if(!printedStatus && LOG.isDebugEnabled()) {
157+
printedStatus = true;
155158
LOG.debug(this.toString());
159+
}
156160
}
157161

158-
public boolean isRLEAllowed(){
162+
public boolean isRLEAllowed() {
159163
return this.validCompressions.contains(CompressionType.RLE);
160164
}
161165

0 commit comments

Comments
 (0)