xxubai commented on code in PR #3546:
URL: https://github.com/apache/amoro/pull/3546#discussion_r2116006417
##########
amoro-format-iceberg/src/main/java/org/apache/amoro/optimizing/plan/AbstractOptimizingPlanner.java:
##########
@@ -151,27 +151,33 @@ public List<RewriteStageTask> planTasks() {
return cacheAndReturnTasks(Collections.emptyList());
}
- List<PartitionEvaluator> evaluators = new
ArrayList<>(needOptimizingPlanMap.values());
+ LinkedList<PartitionEvaluator> evaluators = new
LinkedList<>(needOptimizingPlanMap.values());
Review Comment:
I think using a `Deque` is sufficient here, as a priority queue is not more
efficient than a list in this case, especially during polling. Therefore, I
don’t think using a priority queue for sorting is necessarily appropriate.
--
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]