zstan commented on a change in pull request #9751:
URL: https://github.com/apache/ignite/pull/9751#discussion_r794264345



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/metadata/ColocationGroup.java
##########
@@ -78,27 +74,20 @@ public static ColocationGroup 
forAssignments(List<List<UUID>> assignments) {
 
     /** */
     public static ColocationGroup forSourceId(long sourceId) {
-        return new ColocationGroup(Collections.singletonList(sourceId), null, 
null);
+        return new ColocationGroup(new long[] {sourceId}, null, null);
     }
 
     /** */
     public ColocationGroup() {
     }
 
     /** */
-    private ColocationGroup(List<Long> sourceIds, List<UUID> nodeIds, 
List<List<UUID>> assignments) {
+    private ColocationGroup(long[] sourceIds, List<UUID> nodeIds, 
List<List<UUID>> assignments) {
         this.sourceIds = sourceIds;

Review comment:
       possibly it faster than `Arrays.stream(sourceIds).` ?
   ```suggestion
           this.sourceIds = new GridLongList(sourceIds);
   ```




-- 
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]


Reply via email to