From 75972acfddc03d3546d5a8785c97bc75ef433e58 Mon Sep 17 00:00:00 2001 From: Sebastian Baunsgaard Date: Mon, 21 Oct 2024 23:54:42 +0200 Subject: [PATCH] jit --- .../frame/data/compress/CompressedFrameBlockFactory.java | 4 ---- .../sysds/runtime/transform/encode/CompressedEncode.java | 6 +++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/sysds/runtime/frame/data/compress/CompressedFrameBlockFactory.java b/src/main/java/org/apache/sysds/runtime/frame/data/compress/CompressedFrameBlockFactory.java index e684b859fc1..de7031c7c01 100644 --- a/src/main/java/org/apache/sysds/runtime/frame/data/compress/CompressedFrameBlockFactory.java +++ b/src/main/java/org/apache/sysds/runtime/frame/data/compress/CompressedFrameBlockFactory.java @@ -228,11 +228,7 @@ private void logStatistics() { if(in.getColumn(i) instanceof ACompressedArray) sb.append(String.format("Col: %3d, %s\n", i, "Column is already compressed")); else - // if(stats[i].shouldCompress) sb.append(String.format("Col: %3d, %s\n", i, stats[i])); - // else - // sb.append(String.format("Col: %3d, No Compress, Type: %s\n", // - // i, in.getColumn(i).getClass().getSimpleName())); } LOG.debug(sb); } diff --git a/src/main/java/org/apache/sysds/runtime/transform/encode/CompressedEncode.java b/src/main/java/org/apache/sysds/runtime/transform/encode/CompressedEncode.java index 20a618e35a9..58e00398645 100644 --- a/src/main/java/org/apache/sysds/runtime/transform/encode/CompressedEncode.java +++ b/src/main/java/org/apache/sysds/runtime/transform/encode/CompressedEncode.java @@ -450,10 +450,14 @@ private AMapToData createMappingAMapToData(Array a, Map map, boolean private static AMapToData createMappingAMapToDataNoNull(Array a, Map map, int si, AMapToData m, int start, int end) { // TODO push down to underlying array if critical performance to allow JIT compilation. for(int i = start; i < end; i++) - m.set(i, map.get(a.get(i)).intValue() - 1); + setM(a, map, m, i); return m; } + private static void setM(Array a, Map map, AMapToData m, int i) { + m.set(i, map.get(a.get(i)).intValue() - 1); + } + private static AMapToData createMappingAMapToDataWithNull(Array a, Map map, int si, AMapToData m, int start, int end) { // TODO push down to underlying array if critical performance to allow JIT compilation. for(int i = start; i < end; i++)