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