cpoerschke commented on a change in pull request #329:
URL: https://github.com/apache/solr/pull/329#discussion_r735751990



##########
File path: 
solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java
##########
@@ -1265,10 +1265,12 @@ public void processGetUpdates(ResponseBuilder rb) 
throws IOException
 
     // TODO: get this from cache instead of rebuilding?
     try (UpdateLog.RecentUpdates recentUpdates = ulog.getRecentUpdates()) {
+      Set<Long> updateVersions = new HashSet<>();

Review comment:
       "should be small" is fairly subjective, how about initial capacity-ing 
it instead to communicate order-of-magnitude?
   
   ```suggestion
         Set<Long> updateVersions = new HashSet<>(versions.size());
   ```




-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to