Skip to content

Commit 31241cc

Browse files
committed
reduce hashing
1 parent e99b14f commit 31241cc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎reconstruction/dc/src/main/java/org/jlab/rec/dc/Constants.java‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,11 @@ private void addReverseTT(int run, IndexedTable tt) {
524524
int comp = tt.getIntValueByHash(2, (long)key);
525525
int order = tt.getIntValueByHash(3, (long)key);
526526
reverse.addEntry(sector, layer, comp, order);
527-
reverse.setIntValue(crate, "crate", sector, layer, comp, order);
528-
reverse.setIntValue(slot, "slot", sector, layer, comp, order);
529-
reverse.setIntValue(channel, "channel", sector, layer, comp, order);
527+
long hash = IndexedTable.DEFAULT_GENERATOR.hashCode(sector,layer,comp,order);
528+
reverse.setIntValueByHash(crate, 0, hash);
529+
reverse.setIntValueByHash(crate, 1, hash);
530+
reverse.setIntValueByHash(slot, 2, hash);
531+
reverse.setIntValueByHash(channel, 3, hash);
530532
}
531533
reverseTTs.put(run, reverse);
532534
}

0 commit comments

Comments
 (0)