Skip to content

Commit

Permalink
0002526: Improve performance of data gap detection,
Browse files Browse the repository at this point in the history
add logging for timing of mapping the data ids into the gaps
  • Loading branch information
erilong committed Aug 2, 2016
1 parent 3bd0bb1 commit 2cad25c
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -186,6 +186,11 @@ public void afterRouting() {
gapsAll.addAll(gaps);
Map<DataGap, List<Long>> dataIdMap = getDataIdMap();

if (System.currentTimeMillis() - ts > 30000) {
log.info("It took {}ms to map {} data IDs into {} gaps", new Object[] { System.currentTimeMillis() - ts,
dataIds.size(), gaps.size() });
}

for (final DataGap dataGap : gaps) {
final boolean lastGap = dataGap.equals(gaps.get(gaps.size() - 1));
lastDataId = -1;
Expand Down

0 comments on commit 2cad25c

Please sign in to comment.