Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F544DCEF for ; Sat, 29 Sep 2012 00:59:08 +0000 (UTC) Received: (qmail 95383 invoked by uid 500); 29 Sep 2012 00:59:07 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 95278 invoked by uid 500); 29 Sep 2012 00:59:07 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 95270 invoked by uid 99); 29 Sep 2012 00:59:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Sep 2012 00:59:07 +0000 Date: Sat, 29 Sep 2012 11:59:07 +1100 (NCT) From: "Aaron T. Myers (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1113141949.141935.1348880347865.JavaMail.jiratomcat@arcas> Subject: [jira] [Moved] (HADOOP-8866) SampleQuantiles#query is O(N^2) instead of O(N) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aaron T. Myers moved HDFS-3976 to HADOOP-8866: ---------------------------------------------- Target Version/s: 2.0.3-alpha (was: 2.0.3-alpha) Affects Version/s: (was: 2.0.3-alpha) 2.0.2-alpha Key: HADOOP-8866 (was: HDFS-3976) Project: Hadoop Common (was: Hadoop HDFS) > SampleQuantiles#query is O(N^2) instead of O(N) > ----------------------------------------------- > > Key: HADOOP-8866 > URL: https://issues.apache.org/jira/browse/HADOOP-8866 > Project: Hadoop Common > Issue Type: Improvement > Affects Versions: 2.0.2-alpha > Reporter: Andrew Wang > Assignee: Andrew Wang > Priority: Minor > Attachments: hdfs-3976-1.patch > > > 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