romseygeek commented on code in PR #16962:
URL: https://github.com/apache/lucene/pull/16962#discussion_r4441590245


##########
lucene/benchmark-jmh/src/java/org/apache/lucene/benchmark/jmh/MultiFieldDocValuesRangeBenchmark.java:
##########
@@ -157,7 +157,7 @@ public void setup(Params params) throws Exception {
     // fires and returns DocIdSetIterator.range() — adding MatchAllDocsQuery 
here would force it
     // through DenseConjunctionBulkScorer and bypass that fast path, causing a 
regression.
     if (params.fieldCount == 1 && !params.dataPattern.equals(SORTED)) {
-      bqBuilder.add(new org.apache.lucene.search.MatchAllDocsQuery(), 
Occur.FILTER);
+      bqBuilder.add(org.apache.lucene.search.MatchAllDocsQuery.INSTANCE, 
Occur.FILTER);

Review Comment:
   Let's add an import and avoid the fully-qualified package prefix?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to