Fokko opened a new issue, #8810:
URL: https://github.com/apache/iceberg/issues/8810

   ### Feature Request / Improvement
   
   Suggestion by IDEA:
   
   
![image](https://github.com/apache/iceberg/assets/1134248/2d0a997e-9693-4283-8fc4-b9471a6fab6c)
   
   I think this is nice because `isEmpty` should be faster. We also have 
different implementations in `PartitionSet.java`:
   
   ```java
     @Override
     public int size() {
       return partitionSetById.values().stream().mapToInt(Set::size).sum();
     }
   
     @Override
     public boolean isEmpty() {
       return partitionSetById.values().stream().allMatch(Set::isEmpty);
     }
   ```
   
   ### Query engine
   
   Other


-- 
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...@iceberg.apache.org.apache.org

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


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

Reply via email to