From 292c7b5eafaf3294fac000a0466709bd05a20049 Mon Sep 17 00:00:00 2001 From: Vojtech Moravec <vojtech.moravec.st@vsb.cz> Date: Sat, 28 Mar 2020 16:47:40 +0100 Subject: [PATCH] Don't spam times in verbose mode. --- .../quantization/vector/LBGVectorQuantizer.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/azgracompress/quantization/vector/LBGVectorQuantizer.java b/src/main/java/azgracompress/quantization/vector/LBGVectorQuantizer.java index 070d5d9..6943a3e 100644 --- a/src/main/java/azgracompress/quantization/vector/LBGVectorQuantizer.java +++ b/src/main/java/azgracompress/quantization/vector/LBGVectorQuantizer.java @@ -247,9 +247,9 @@ public class LBGVectorQuantizer { mse /= (double) trainingVectors.length; } s.stop(); - if (this.verbose) { - System.out.println(s); - } + // if (this.verbose) { + //// System.out.println(s); + // } return mse; } @@ -499,7 +499,7 @@ public class LBGVectorQuantizer { * @param codebook Vector codebook. */ private void assignVectorsToClosestEntry(LearningCodebookEntry[] codebook) { - Stopwatch stopwatch = Stopwatch.startNew("assignVectorsToClosestEntry"); + // Stopwatch stopwatch = Stopwatch.startNew("assignVectorsToClosestEntry"); if (workerCount > 1) { parallelAssignVectors(codebook); // In parallel version entry properties are already calculated. @@ -508,10 +508,10 @@ public class LBGVectorQuantizer { // Calculate all the entry properties. calculateEntryProperties(codebook); } - stopwatch.stop(); - if (this.verbose) { - System.out.println(stopwatch); - } + // stopwatch.stop(); + // if (this.verbose) { + // System.out.println(stopwatch); + // } } -- GitLab