Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
Per the benchmarks I ran, the following block of code seems to be inefficient:
StoreScanner.java:
public synchronized boolean next(List<KeyValue> outResult, int limit,
String metric) throws IOException {
// ...
// update the counter
if (addedResultsSize > 0 && metric != null)
// ...
Removing this block increased throughput by 10%. We should move this to the outer layer.