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

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

                Author: ASF GitHub Bot
            Created on: 23/Jan/21 13:09
            Start Date: 23/Jan/21 13:09
    Worklog Time Spent: 10m 
      Work Description: arturobernalg closed pull request #2642:
URL: https://github.com/apache/hadoop/pull/2642


   


----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 540525)
    Time Spent: 1h 40m  (was: 1.5h)

> 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: 1h 40m
>  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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to