uros-b commented on code in PR #17581:
URL: https://github.com/apache/iceberg/pull/17581#discussion_r3792267207
##########
core/src/main/java/org/apache/iceberg/ManifestFiles.java:
##########
@@ -632,7 +632,7 @@ static <F> List<ManifestFile> writeParallel(
List<List<F>> groups = divide(files, parallelism);
// Pair each group with its index so results can be reassembled in input
order.
- List<Pair<Integer, List<F>>> groupsWithIndex = Lists.newArrayList();
+ List<Pair<Integer, List<F>>> groupsWithIndex =
Lists.newArrayListWithCapacity(groups.size());
Review Comment:
Thank you, done!
--
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]