vinothchandar commented on a change in pull request #997: [HUDI-302]: 
simplified countInstants() method in HoodieDefaultTimeline
URL: https://github.com/apache/incubator-hudi/pull/997#discussion_r343322703
 
 

 ##########
 File path: 
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieDefaultTimeline.java
 ##########
 @@ -141,7 +141,7 @@ public boolean empty() {
 
   @Override
   public int countInstants() {
-    return new Long(instants.stream().count()).intValue();
+    return instants.size();
 
 Review comment:
   holy cow. :) 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to