cleanup
remove debug output
This commit is contained in:
@@ -293,7 +293,6 @@ public class DataStore implements AutoCloseable {
|
||||
|
||||
synchronized (docIdToDoc) {
|
||||
|
||||
final long start = System.nanoTime();
|
||||
for (int i = 0; i < docIdsList.size(); i++) {
|
||||
final long docId = docIdsList.get(i);
|
||||
|
||||
@@ -302,14 +301,11 @@ public class DataStore implements AutoCloseable {
|
||||
|
||||
result.add(doc);
|
||||
}
|
||||
System.out.println(
|
||||
"mapDocIdsToDocs: " + (System.nanoTime() - start) / 1_000_000.0 + "ms ; tags:" + result.size());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public List<Doc> getByTags(final Tags tags) {
|
||||
final long start = System.nanoTime();
|
||||
try {
|
||||
final Long docId = tagsToDocId.getValue(tags);
|
||||
final List<Doc> result = new ArrayList<>(0);
|
||||
@@ -317,8 +313,6 @@ public class DataStore implements AutoCloseable {
|
||||
final Doc doc = getDocByDocId(docId);
|
||||
result.add(doc);
|
||||
}
|
||||
System.out
|
||||
.println("getByTags: " + (System.nanoTime() - start) / 1_000_000.0 + "ms ; tags:" + result.size());
|
||||
return result;
|
||||
} catch (final IOException e) {
|
||||
throw new RuntimeIOException(e);
|
||||
|
||||
Reference in New Issue
Block a user