Return-Path: X-Original-To: apmail-mahout-dev-archive@www.apache.org Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2D4AFA44 for ; Mon, 15 Apr 2013 04:35:37 +0000 (UTC) Received: (qmail 40918 invoked by uid 500); 15 Apr 2013 04:35:37 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 40625 invoked by uid 500); 15 Apr 2013 04:35:36 -0000 Mailing-List: contact dev-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list dev@mahout.apache.org Received: (qmail 40600 invoked by uid 99); 15 Apr 2013 04:35:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 04:35:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robin.anil@gmail.com designates 209.85.128.177 as permitted sender) Received: from [209.85.128.177] (HELO mail-ve0-f177.google.com) (209.85.128.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 04:35:29 +0000 Received: by mail-ve0-f177.google.com with SMTP id jw11so3808122veb.8 for ; Sun, 14 Apr 2013 21:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=esi3Rp2Kgqhv/89uRjfNy1d8prrosV3Wuct+QWks00Q=; b=aeoaf0xWRui3ucyN+pXhKKQx4ma6cYUubHQ+dAyh+NJGJdbTUPisnWr84Sn1Hni547 JyEe51ZhTY7fk2R/wa001w8MkniHgUXXVMhPBzKUrw8vX5rTtYfaEpY37mPI3wgjdkGA /ayVsgzD4Fp2vtsGNPJd387X/5waWQMaJbvxf6fK8Shh/Icn8Qm+42IdSM2sJswv2gz/ 7IqLG5dBpjzSvzply1IJpC6PrYcuqAwnXJObZeuLMft0fki0D7AZGP/3Exg6wlkCAQAp 7Nt/jSYAspjaZw7dZ2R4/oS7KwR8yKICjx61TXNP+vh0qzqqI5E+s1zg1R41hVaDViO2 84RQ== X-Received: by 10.52.93.78 with SMTP id cs14mr13040964vdb.17.1366000508503; Sun, 14 Apr 2013 21:35:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.221.8.131 with HTTP; Sun, 14 Apr 2013 21:34:48 -0700 (PDT) In-Reply-To: References: <59E78FFA-AD0E-43A4-915F-6D88BFC069C9@gmail.com> From: Robin Anil Date: Sun, 14 Apr 2013 23:34:48 -0500 Message-ID: Subject: Re: Odd vector iteration behavior To: Mahout-Dev Content-Type: multipart/alternative; boundary=bcaec50162e312904804da5ec71e X-Virus-Checked: Checked by ClamAV on apache.org --bcaec50162e312904804da5ec71e Content-Type: text/plain; charset=UTF-8 Strike that there are still failures. Investigating. if I cant fix it in the next hour, I will submit them sometime in the evening tomorrow. Robin Anil | Software Engineer | +1 312 869 2602 | Google Inc. On Sun, Apr 14, 2013 at 11:33 PM, Robin Anil wrote: > Tests pass. Submitting the patches. > > Robin Anil | Software Engineer | +1 312 869 2602 | Google Inc. > > > On Sun, Apr 14, 2013 at 11:17 PM, Robin Anil wrote: > >> Added a few more tests. Throw NoSuchElementException like Java >> Collections when iterating past the end. Things look solid, performance is >> 2x. All Math tests pass. I am now waiting for the entire test suites to run >> before submitting. >> >> Robin Anil | Software Engineer | +1 312 869 2602 | Google Inc. >> >> >> On Sun, Apr 14, 2013 at 9:49 PM, Robin Anil wrote: >> >>> I am not sure what I did. But removing Guava Abstract iterator actually >>> sped up the dot, cosine, euclidean by another 60%. Things are now 2x faster >>> than trunk. While also correcting the behavior (I hope) >>> >>> >>> https://docs.google.com/spreadsheet/ccc?key=0AhewTD_ZgznddGFQbWJCQTZXSnFULUYzdURfWDRJQlE#gid=1 >>> >>> Robin Anil | Software Engineer | +1 312 869 2602 | Google Inc. >>> >>> >>> On Sun, Apr 14, 2013 at 8:56 PM, Robin Anil wrote: >>> >>>> Also note that this is code gen, I have to create Element$keyType$Value >>>> for each and every combination not just int double. and also update all >>>> callers to user ElementIntDouble instead of Element. Is it worth it ? >>>> >>>> Robin Anil | Software Engineer | +1 312 869 2602 | Google Inc. >>>> >>>> >>>> On Sun, Apr 14, 2013 at 8:46 PM, Ted Dunning wrote: >>>> >>>>> Collections (no longer colt collections) are now part of mahout math. >>>>> No >>>>> need to keep them separate. The lower iterator can reference >>>>> Vector.Element >>>>> >>>>> >>>>> On Sun, Apr 14, 2013 at 6:24 PM, Robin Anil >>>>> wrote: >>>>> >>>>> > I would have loved to but Element is a sub interface in Vector. If >>>>> we want >>>>> > to keep colt collections separate we have to keep this separation. >>>>> > >>>>> >>>> >>>> >>> >> > --bcaec50162e312904804da5ec71e--