You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Andrew Wang (JIRA)" <ji...@apache.org> on 2012/09/26 00:42:08 UTC

[jira] [Created] (HDFS-3976) SampleQuantiles#query is O(N^2) instead of O(N)

Andrew Wang created HDFS-3976:
---------------------------------

             Summary: SampleQuantiles#query is O(N^2) instead of O(N)
                 Key: HDFS-3976
                 URL: https://issues.apache.org/jira/browse/HDFS-3976
             Project: Hadoop HDFS
          Issue Type: Improvement
    Affects Versions: 2.0.3-alpha
            Reporter: Andrew Wang
            Assignee: Andrew Wang
            Priority: Minor


SampleQuantiles#query() does O(N) calls LinkedList#get() in a loop, rather than using an iterator. This makes query O(N^2), rather than O(N).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira