Skip to content

Commit

Permalink
jit
Browse files Browse the repository at this point in the history
  • Loading branch information
Baunsgaard committed Oct 21, 2024
1 parent ccba531 commit 75972ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,14 @@ private AMapToData createMappingAMapToData(Array<?> a, Map<?, Long> map, boolean
private static AMapToData createMappingAMapToDataNoNull(Array<?> a, Map<?, Long> 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<?, Long> map, AMapToData m, int i) {
m.set(i, map.get(a.get(i)).intValue() - 1);
}

private static AMapToData createMappingAMapToDataWithNull(Array<?> a, Map<?, Long> 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++)
Expand Down

0 comments on commit 75972ac

Please sign in to comment.