dlmarion commented on code in PR #6449:
URL: https://github.com/apache/accumulo/pull/6449#discussion_r3493209355
##########
server/gc/src/main/java/org/apache/accumulo/gc/GCRun.java:
##########
@@ -150,7 +150,7 @@ public List<GcCandidate>
readCandidatesThatFitInMemory(Iterator<GcCandidate> can
// Converting the bytes to approximate number of characters for batch size.
long candidateBatchSize = getCandidateBatchSize() / 2;
- List<GcCandidate> candidatesBatch = new ArrayList<>();
+ List<GcCandidate> candidatesBatch = new ArrayList<>(256);
Review Comment:
Yes. The value of 256 is something arbitrary, I was just trying to pick a
sensible value.
--
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]