[ 
https://issues.apache.org/jira/browse/HDFS-15786?focusedWorklogId=541248&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-541248
 ]

ASF GitHub Bot logged work on HDFS-15786:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Jan/21 18:56
            Start Date: 25/Jan/21 18:56
    Worklog Time Spent: 10m 
      Work Description: goiri commented on pull request #2643:
URL: https://github.com/apache/hadoop/pull/2643#issuecomment-767037920


   Let's do a JIRA for HDFS, one for YARN and one for the rest.
   Otherwise this will be massive.
   Use this PR just for HDFS.


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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 541248)
    Time Spent: 2h 50m  (was: 2h 40m)

> Minor improvement use isEmpty
> -----------------------------
>
>                 Key: HDFS-15786
>                 URL: https://issues.apache.org/jira/browse/HDFS-15786
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Arturo Bernal
>            Assignee: Arturo Bernal
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> Use isEmpty instead size() > o.
>  
> {{size()}} can be *O(1)* or *O(N)*, depending on the {{data structure}}; 
> {{.isEmpty()}} is never *O(N)*.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to