[
https://issues.apache.org/jira/browse/HDFS-15786?focusedWorklogId=541251&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-541251
]
ASF GitHub Bot logged work on HDFS-15786:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Jan/21 19:05
Start Date: 25/Jan/21 19:05
Worklog Time Spent: 10m
Work Description: arturobernalg commented on pull request #2643:
URL: https://github.com/apache/hadoop/pull/2643#issuecomment-767043369
> 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.
Hi @goiri
Agree. Thank you
----------------------------------------------------------------
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: 541251)
Time Spent: 3h (was: 2h 50m)
> 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: 3h
> 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]